Auth & OAuth

Initialize authentication handoff between customer application and a BlueNexus application

post

Initialize a secure user authentication handoff to redirect an authenticated user from a customer application to a BlueNexus application without re-authentication. This endpoint returns a short-lived handoff code to include when redirecting the user to the BlueNexus application.

Access restriction: Whitelabel customer client only

Authorizations
AuthorizationstringRequired

Enter JWT access token

Body

Request body for initializing authentication handoff

redirectUristringRequired

The redirect URI to send the user back to

Example: https://example.com/callback
intentstring · enumRequired

The intent of the authentication request

Example: connectionsPossible values:
Responses
200

Authentication handoff initialized successfully

application/json
post
/api/v1/auth/handoff/init

Authenticate user

post

Authenticate a user using a signed SIWE payload and an optional sessionId to continue an existing session. Returns access and refresh tokens as well as the session ID. The session ID can be stored for future authentication requests to continue on the same session.

Confidential clients must pass their credentials using Basic Auth in the Authorization header. Public clients without secret must pass the client_id in the body.

Access restriction: Whitelabel customer client only

Authorizations
AuthorizationstringRequired

OAuth Client credentials

Header parameters
AuthorizationstringOptional

Basic auth credentials with client ID and secret. Optional, public clients without secret must pass the client_id in the body.

Body

Authenticate request body

client_idstringOptional

Client ID to pass for public clients (no secret). Clients with a secret can use the Basic authorization headers instead (recommended).

client_secretstringOptional

Client secret. Optional for public clients (no secret). Required for confidential clients. Clients with a secret can use the Basic authorization headers instead (recommended).

signaturestringRequired

Signature of the SIWE payload

session_idstringOptional

Session id to continue, if not provided a new session is created

Responses
200

Authenticate response

application/json
post
/api/v1/auth/authenticate

OAuth token exchange

post

Either exchange an authorization code for an access token or refresh an access token using a refresh token.

Authorizations
Header parameters
AuthorizationstringOptional

Basic auth credentials with client id and secret. If undefined, falls back to client id and secret in the body. Whatever the method, the client ID is required. Client without secret should use the body.

Body

Token exchange request body

grant_typestring · enumRequired

OAuth grant type

Possible values:
codestringOptional

Authorization code. Required for the authorization_code grant type.

redirect_uristringOptional

Redirect URI. Required for the authorization_code grant type. It must match the redirect URI used to obtain the authorization code.

Example: https://example.com/oauth/callback
client_idstringOptional

Client ID.

client_secretstringOptional

Client secret.

code_verifierstringOptional

PKCE code verifier. Required for the authorization_code grant type.

refresh_tokenstringOptional

Refresh token. Required for the refresh_token grant type.

Responses
200

Token exchange response

application/json
post
/api/v1/auth/token

Revoke an auth session

post

Revoke an auth session from an access token or a refresh token.

Authorizations
Header parameters
AuthorizationstringOptional

Basic auth credentials with client id and secret. If undefined, falls back to client id and secret in the body. Whatever the method, the client ID is required. Client without secret should use the body.

Body

Revoke access token or refresh token request body

tokenstringRequired

Token to revoke, either access or refresh token.

token_type_hintstring · enumOptional

Token type hint, indicating if the provided token is either an access or a refresh token.

Possible values:
client_idstringOptional

Client ID. Could be passed in the body or as a Basic Authorization header as the preferred method. Whatever the method, the client ID is required.

client_secretstringOptional

Client secret. Could be passed in the body or as a Basic Authorization header as the preferred method.

Responses
200

No content for the revoke response, as per OAuth specification.

No content

post
/api/v1/auth/revoke

No content

Get authorization scopes

get

Get all available authorization scopes.

Responses
200

Available authorization scopes retrieved successfully

application/json
get
/api/v1/auth/scopes

Last updated