Skip to content

add an endpoint to exchange an oidc token for a jwt token#675

Open
mitchelljkotler wants to merge 1 commit intomasterfrom
oauth-jwt-tokens
Open

add an endpoint to exchange an oidc token for a jwt token#675
mitchelljkotler wants to merge 1 commit intomasterfrom
oauth-jwt-tokens

Conversation

@mitchelljkotler
Copy link
Copy Markdown
Member

@mitchelljkotler mitchelljkotler commented May 8, 2026

Looking into how the oAuth flow works, a new endpoint was needed. I have added an endpoint that allows you to exchange an OIDC access token (gotten from /openid/token) for a JWT access and refresh token, which can be used on the DocumentCloud API.

Use the access token from /openid/token. Make a POST request to /api/jwt/ with the token in the body parameter oidc_token. It will return a JSON object with an access_token and a refresh_token.

@allanlasser allanlasser temporarily deployed to squarelet-pi-oauth-jwt--rd1jo3 May 8, 2026 20:40 Inactive
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