6db43b35bc50
Create authorization URL
Create an sgID authorization URL to redirect your user to so that they can authenticate with Singpass
Query parameters
Must be set to code because sgID only supports the authorization code flow
sgID client ID which was provided to you during client registration
The callback URL that was provided during registration. sgID redirects to this URL with the authorization code after the user authenticates with Singpass
A URL-encoded string of the scopes your client will request for
Randomly generated string to be returned in the ID token. Used to prevent replay attacks as part of the OpenID Connect 1.0 spec
A unique and non-guessable value associated with each authentication request about to be initiated. Used to prevent CSRF attacks and to maintain state as part of the OAuth 2.0 spec (RECOMMENDED)
The method used to verify the code challenge. Throws an error response if the value is not 'S256'
A SHA256 hashed string that should be used to verify against the code verifier in the token request
Response
A HTML page which contains a sgID QR code if the request is successful, or an error code and error message if there is a problem with the request.