IoT Stadium

API Documentation

Flow Signin With PKCE

Flow Signin With PKCE - Authorize Request

Get

http://iot-auth.test/oauth/authorize?client_id=

Parameter

Field Type Description
client_id Text

Identifies your app to the OAuth server.

response_type Text

Required for authorization code flow (missing in your example).

redirect_url Text

Where the auth server sends the user after approval.

scope Text

Null

state Text

Give random token max 40 chars

[
	{
		"key": "client_id",
		"value": "9b6eefa3-d873-46a7-9fe4-986b20ab60b6",
		"type": "text"
	},
	{
		"key": "redirect_url",
		"value": "http://iot-auth.test/auth/callback",
		"type": "text"
	},
	{
		"key": "response_type",
		"value": "code",
		"type": "text"
	},
	{
		"key": "scope",
		"value": "",
		"type": "text"
	},
	{
		"key": "state",
		"value": "123123123",
		"description": "random string(40)",
		"type": "text"
	}
]
                                            
{
    "access_token": "eyJhbGciOi...",
    "token_type": "Bearer",
    "expires_in": 3600,
    "refresh_token": "def50200..."
}