auth

Retrieve an authorisation token

Changed on

Requires Basic auth header to be sent with the client-id & client-secret base64 encoded

post/oidc/token

Request

  • Base URL
    https://identity.moneyhub.co.uk
  • URL
    https://identity.moneyhub.co.uk/oidc/token
  • Auth
    HTTP basic

Request body application/x-www-form-urlencoded

grant_type'client_credentials' | 'authorization_code' | 'refresh_token' required

Type of grant token required

scopestring required

The required scopes

substring

The user-id of the specific user

codestring

The authorization code for use when doing a client secret basic auth

redirect_uristring

The redirect URI

client_idstring

The client id for use when doing a private key JWT auth

client_assertionstring

For use when doing a private key JWT auth

client_assertion_typestring

For use when doing a private key JWT auth

Example request

{
  "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
}

Response

A successful token retrieval response

access_tokenstring required

Access Token

expires_ininteger required

Token Expiry

token_typestring required

Type of token granted

scopestring

The granted scopes

Example response

{
  "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IlRxVk1laV9XdUtqZW5HWlJUbnJpeUxXRnZuS2tzTjNvLWFuWXBqS0JEbVUifQ",
  "expires_in": 1616090946,
  "token_type": "Bearer",
  "scope": "id:1ffe704d39629a929c8e293880fb449a openid"
}

Changes

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status