IoT Stadium

API Documentation

Flow Signin With PKCE

Flow Signin With PKCE - Refresh Token

Post

http://iot-auth.test/oauth/token

Parameter

Field Type Description
client_id Text

Client identifier

redirect_url Text

Where the auth server sends the user after approval.

grant_type Text

OAuth2 grant type.

refresh_token Text

Get from URL callback code.

code_verifier Text

Fill with verified code

client_secret Text

Contain the client ID

{
  "access_token": "eyJ0eXAiOiJKV1QiLCJhbGci...",
  "token_type": "Bearer",
  "expires_in": 3600,
  "refresh_token": "new_refresh_token_value",
  "scope": "read write"
}
{
  "error": "invalid_client",
  "error_description": "Client authentication failed"
}