@mongodb-js/oidc-plugin
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -694,2 +694,3 @@ "use strict"; | ||
async requestToken(params) { | ||
this.logger.emit('mongodb-oidc-plugin:received-server-params', { params }); | ||
if (params.version !== 1) { | ||
@@ -706,3 +707,6 @@ throw new types_1.MongoDBOIDCError( | ||
} | ||
const state = this.getAuthState(params.idpInfo); | ||
const state = this.getAuthState({ | ||
...params.idpInfo, | ||
username: params.username, | ||
}); | ||
if (state.currentAuthAttempt) { | ||
@@ -709,0 +713,0 @@ return await state.currentAuthAttempt; |
@@ -96,2 +96,5 @@ /** @public */ | ||
}) => void; | ||
'mongodb-oidc-plugin:received-server-params': (event: { | ||
params: OIDCCallbackParams; | ||
}) => void; | ||
} | ||
@@ -98,0 +101,0 @@ /** @public */ |
@@ -180,2 +180,5 @@ /// <reference types="node" /> | ||
}) => void; | ||
'mongodb-oidc-plugin:received-server-params': (event: { | ||
params: OIDCCallbackParams; | ||
}) => void; | ||
} | ||
@@ -182,0 +185,0 @@ |
@@ -16,3 +16,3 @@ { | ||
"homepage": "https://github.com/mongodb-js/oidc-plugin", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"repository": { | ||
@@ -19,0 +19,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
180798
2481