-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add Allowed OAuth Tenants #334
Conversation
* Authenticate an access token issued by Stytch from the Token endpoint. | ||
* M2M access tokens are JWTs signed with the project's JWKs, and can be validated locally using any Stytch client library. | ||
* You may pass in an optional set of scopes that the JWT must contain in order to enforce permissions. | ||
* You may also override the default scope authorization function to implement custom authorization logic. | ||
* | ||
* @param data {@link AuthenticateTokenRequest} | ||
* @param scopeAuthorizationFunc {@link ScopeAuthorizationFunc} - A function that checks if the token has the required scopes. | ||
The default function assumes scopes are either direct string matches or written in the form "action:resource". See the | ||
documentation for {@link performAuthorizationCheck} for more information. | ||
* @async | ||
* @returns {@link AuthenticateTokenResponse} | ||
* @throws {ClientError} when token can not be authenticated | ||
*/ |
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.
Hmmm... looks like codegen is forcing this section to slowly march right off the page. I'll file a task to look into why it's doing this.
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.
BACK-3893
* Authenticate an access token issued by Stytch from the Token endpoint. | ||
* M2M access tokens are JWTs signed with the project's JWKs, and can be validated locally using any Stytch client library. | ||
* You may pass in an optional set of scopes that the JWT must contain in order to enforce permissions. | ||
* You may also override the default scope authorization function to implement custom authorization logic. | ||
* | ||
* @param data {@link AuthenticateTokenRequest} | ||
* @param scopeAuthorizationFunc {@link ScopeAuthorizationFunc} - A function that checks if the token has the required scopes. | ||
The default function assumes scopes are either direct string matches or written in the form "action:resource". See the | ||
documentation for {@link performAuthorizationCheck} for more information. | ||
* @async | ||
* @returns {@link AuthenticateTokenResponse} | ||
* @throws {ClientError} when token can not be authenticated | ||
*/ |
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.
@logan-stytch same thing happening here
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.
Yep, this is just generated from the .ts
, so that tracks
No description provided.