Comment on page
Passport API
Auth Gateway
Call this method to exchange an exchange code or refresh token for a new access token and refresh token.
post
https://passport.rollup.id/token
Exchange Token
Javascript
Curl
const tokenForm = new Form()
tokenForm.append('code', exchangeCode)
tokenForm.append('grant_type', grantType)
tokenForm.append('client_id', clientId)
tokenForm.append('client_secret', clientSecret)
const { access_code, refresh_token } = await fetch(
'https://passport.rollup.id/token',
{
method: 'post',
body: tokenForm,
}
)
curl https://passport.rollup.id/token -X POST \
--header "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "client_id={clientId}" \
--data-urlencode "client_secret={clientSecret}"
--data-urlencode "code={exchangeCode}"
--data-urlencode "grant_type=authorization_code"
Call this method to retrieve basic identity information for the user. This endpoint retrieves fresh data that would have been included in the ID token when the app was initially authorized by the user.
post
https://passport.rollup.id/
userinfo
User Info
Javascript
Curl
const access_token = '(some access token value)'
const response = await fetch('https://passport.rollup.id/userinfo', {
headers: {
Authorization: `Bearer ${access_token}`,
},
})
const { name, picture } = await response.json()
export token="(some token value)"
curl https://passport.rollup.id/userinfo \
--header "Authorization: Bearer $token"
The OpenID provider metadata can be accessed in the endpoint described below.
get
https://passport.rollup.id/.well-known/openid-configuration
OpenID Configuration
The JWKS is the list of public keys to be used to validate token signatures.
get
https://passport.rollup.id/.well-known/jwks.json
JWKS
Last modified 1mo ago