-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add validateAccessToken function to providers #701
Conversation
…access token received from the providers
if (impl.config.validateAccessToken !== undefined) { | ||
await impl.config.validateAccessToken({ | ||
accessToken: accessToken, | ||
clientConfig: impl.config, | ||
userContext, | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should happen before the above if and we need to check if the access token is undefined or not
// if (input.config.validateAccessToken === undefined) { | ||
// input.config.validateAccessToken = async ({ accessTokenPayload, clientConfig }) => { | ||
// if (accessTokenPayload.aud !== clientConfig.clientId) { | ||
// throw Error("accessTokenPayload.aud does not match clientId"); | ||
// } | ||
// }; | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove it
lib/ts/version.ts
Outdated
@@ -12,7 +12,7 @@ | |||
* License for the specific language governing permissions and limitations | |||
* under the License. | |||
*/ | |||
export const version = "16.0.0"; | |||
export const version = "16.0.1"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
16.2
Summary of change
(A few sentences about this PR)
Related issues
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)
Documentation changes
(If relevant, please create a PR in our docs repo, or create a checklist here highlighting the necessary changes)
Checklist for important updates
coreDriverInterfaceSupported.json
file has been updated (if needed)lib/ts/version.ts
frontendDriverInterfaceSupported.json
file has been updated (if needed)package.json
package-lock.json
lib/ts/version.ts
npm run build-pretty
recipe/thirdparty/providers/configUtils.ts
file,createProvider
function.git tag
) in the formatvX.Y.Z
, and then find the latest branch (git branch --all
) whoseX.Y
is greater than the latest released tag.add-ts-no-check.js
file to include thatsomeFunc: function () {..}
).Remaining TODOs for this PR