Skip to main content

OAuth

Authorize

Specification: https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.1

Query Parameters

NameRequired?Notes
client_idYes---
redirect_uriYes---
response_typeYescode is the only supported response type.
code_challengeYesPKCE code challenge. Length must be greater than or equal to 32 characters. https://datatracker.ietf.org/doc/html/rfc7636
code_challenge_methodYesMust be set to S256.
scopeYesSee scopes table.
stateNoAn opaque value used by the client to maintain state between the request and callback. https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-00#section-4.1.1.3

Available Scopes

NameRequired?FDX Resource Access
openidYesAny
customersNo/customers/current
accountsNo/accounts
/accounts/{accountId}
transactionsNo/accounts/{accountId}/transactions
statementsNoTBD

Endpoint: GET /oauth2/v4/authorize

Request
Response
Language:shell

_10
curl -i -X GET 'https://base.url.com/oauth2/v4/authorize?client_id=8-NKBucVBblNc1LUlok76nz0-JpG8qWAXPIPf2P1NBA&redirect_uri=https%3A%2F%2Fcentzy.org%2Foidc_callback&response_type=code&code_challenge=uR7wSgfQ1JGJBevOjxefcyWnkX4SpclYyxorm10tBIY&code_challenge_method=S256&scope=openid+customers+accounts+transactions&state=YW55dGhpbmcgeW91IG5lZWQ='
_10
-H 'Accept: application/x-www-form-urlencoded'

Access Token

Specification: https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.3

Use this endpoint to get an access token or refresh token. This endpoint uses client_secret_basic authorization.

All issued refresh tokens expire after 30 days. Refresh tokens are rotated upon use in the refresh_token flow with a new token in the response.

All issued tokens are opaque (reference tokens).

Parameters

NameRequired?Notes
client_idYes------
codeYesThe authorization code obtained from the authorize endpoint.
grant_typeYesOnly authorization_code and refresh_token grant types supported.
redirect_uriRequired if used with the authorize endpoint.------

Endpoint: POST /oauth2/v4/token

Request
Response
Language:shell

_10
curl -i -X POST "https://base.url.com/oauth2/v4/token \
_10
-H 'Content-Type: application/x-www-form-urlencoded' \
_10
-H 'Accept: application/json' \
_10
-H 'Authorization: Basic Y2xpZW50X2lkOnNlY3JldA==' \
_10
-d 'grant_type=authorization_code&code=SplxlOBeZQQYbYS6WxSbIA&redirect_uri=https%3A%2F%2Fcentzy.org%2Foidc_callback'

Revoke Access Token

Specification: https://datatracker.ietf.org/doc/html/rfc7009#section-2.1

Use this endpoint to revoke an access token or refresh token.

Parameters

NameRequired?Notes
tokenYesThe token to be revoked.
token_type_hintNoThe type of token. Can be either access_token or refresh_token.

Endpoint: POST /oauth2/v4/revoke

Request
Response
Language:shell

_10
curl -i -X POST 'https://base.url.com/oauth2/v4/revoke' \
_10
-H 'Content-Type: application/x-www-form-urlencoded' \
_10
-H 'Authorization: Basic Y2xpZW50X2lkOnNlY3JldA==' \
_10
-d 'token=SplxlOBeZQQYbYS6WxSbIA&token_type_hint=access_token'