Skip to content
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

Patch 2 #25

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Patch 2 #25

wants to merge 2 commits into from

Conversation

jefftaylor-okta
Copy link
Contributor

I've added more copy, but I need some help with the steps and Code Snippets.

@jefftaylor-okta jefftaylor-okta marked this pull request as draft August 9, 2024 15:07
@jefftaylor-okta
Copy link
Contributor Author

@sdesen @kamronbatman Can you help add some color to the steps?

@sdesen
Copy link
Contributor

sdesen commented Aug 13, 2024

Requesting App Steps

  1. Store id_token
    Optionally, store refresh token. Then fetch another id_token using the refresh token.

  2. Make request for ID-JAG token within lifetime of id_token
    Code Example:

    authGrantResponse = await requestIdJwtAuthzGrant({

  3. Make request for Access Token within lifetime of ID-JAG token
    Code example:

    accessTokenResponse = await exchangeIdJwtAuthzGrant({

Resource App Steps:

  1. Accept new request type at /token endpoint
  2. Validate in exchange for Access Tokens
    Validate the scopes as the server normally would, in addition to the validation in the spec

Code example:

async function jwtAuthorizationGrantHandler(ctx, next) {

@oktadev oktadev deleted a comment from jefftaylor-okta Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants