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

[
{
		"key": "client_id",
		"value": "9c0de456-f646-4046-ac57-5d892dd9e816",
		"type": "text"
	},
	{
		"key": "redirect_uri",
		"value": "http://iot-auth.test/auth/callback",
		"type": "text",
		"disabled": true
	},
	{
		"key": "grant_type",
		"value": "refresh_token",
		"type": "text"
	},
	{
		"key": "refresh_token",
		"value": "{{token}}",
		"description": "from url callback code",
		"type": "text"
	},
	{
		"key": "code_verifier",
		"value": "6lydvWdhN7AglsgQvr1dvjXxJKb0gfFuPJ5xHjJjTh6AninVCPCnsVVdx6R1vOAOyLiWW3WFZIodbfZJejmX4Vuy07WcCwgywfpQDZny6khtZ91s0i36I0w1bkR4INep",
		"type": "text",
		"disabled": true
	},
	{
		"key": "client_secret",
		"value": "YvbnYaox8sfOTILpAtbMlommb6Ge6PKAMeEuaLre",
		"type": "text"
	}
]                                            
{
  "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"
}