Authorization Request

Use the following parameters to send an authorization request. The parameters can be added to the query component of the authorization endpoint URI using the "application/x-www-form-urlencoded" format.

Authorization Request Parameters
Parameter Description
response_type The value must be set to code.

Required.

client_id The client identifier issued to the client by the authorization server during the registration process.

Required.

redirect_uri The URL where the authorization server sends the authorization code.

Optional.

Refer to Section 3.1.2 of RFC 6749 for details.

scope Specifies the scope of the access request.

Refer to Section 3.3 of RFC 6749 for details.

Optional.

state Specifies an opaque value used by the client to maintain the state between the request and callback. The authorization server includes the state value when redirecting the user-agent back to the client.

Optional.

Authorization Request Example

The client directs the user-agent to make the following HTTP request using TLS:

GET /asg/oauth2/authorize?response_type=code&client_id=s6BhdRkqt3&state=xyz

&redirect_uri=https%3A%2F%2Fclient%2Eexample%2Ecom%2Fcb HTTP/1.1

Host: server.example.com