Pular para o conteúdo principal
POST
Exchange a refresh token for an access token

Corpo

application/json
refreshToken
string
obrigatório

The refresh token to exchange for a new access token.

Exemplo:

"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ"

scope
string

Space-delimited scopes the application is requesting. Optional; the originally granted scope is reused when absent.

Exemplo:

"openid profile email"

Resposta

OK

accessToken
string
obrigatório

The issued OAuth2 access token (JWT).

Exemplo:

"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ"

expiresIn
integer<int64>
obrigatório

Access token lifetime in seconds.

Exemplo:

3600

refreshToken
string
obrigatório

The refresh token to obtain a new access token.

Exemplo:

"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ"

tokenType
string
obrigatório

The token type; always "Bearer".

Exemplo:

"Bearer"

idToken
string

The OIDC ID token (JWT).

Exemplo:

"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ"

scope
string

Space-delimited scopes granted to the token.

Exemplo:

"openid profile email"