Tokens

Use tokens to facilitate authentication to the Run:ai API. The API server must be configured to use the Run:ai identity service to validate authentication tokens.

Create an application token.

post

Use to create application tokens. Select a token using the grant_type parameter.

Authorizations
AuthorizationstringRequired

Bearer authentication

Header parameters
User-AgentstringOptional
Body
grantTypeundefined · enumOptionalPossible values:
appIDstringOptional
appSecretstringOptional
codestringOptional
redirectUristringOptional
refreshTokenstringOptional
usernamestringOptional
passwordstringOptional
clientIDstringOptional
Responses
chevron-right
200

Executed successfully.

application/json
post
/api/v1/token
Deprecated

exchange code for token

get

Exchanges an authorization code for an access token. The authorization code is retrieved from the authorization server.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
redirect_uristringRequired

The redirect uri to redirect to after the authorization server completes the authorization flow

codestringRequired

The exchange code retrieved from the idp server

Responses
chevron-right
200

Executed successfully.

application/json
get
/v1/k8s/auth/token/exchange
Deprecated

refresh token

post

Refreshes an user tokens. The refresh token is retrieved from the authorization server.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
refresh_tokenstringRequired

The refresh token retrieved from the idp server

Responses
chevron-right
200

Executed successfully.

application/json
post
/v1/k8s/auth/oauth/tokens/refresh
Deprecated

get application token

post

Retrieve access token for an application. The application token is retrieved from the authorization server.

Authorizations
AuthorizationstringRequired

Bearer authentication

Body
idstringRequired
namestringRequired
secretstringRequired
Responses
chevron-right
200

Executed successfully.

application/json
post
/v1/k8s/auth/oauth/apptoken

Last updated