Getting an Authorization Code
To acquire an access token, the authorization request must include code in the response type parameter.
For example:
GET https://appname.scienceconnect.io/api/oauth/authorize?
client_id=testclient
&response_type=code
&redirect_uri=https://www.appname.com/oidc/cbk
&scope=openid
&state=jctMTcwMWE1ZmQ2ZTQx
&nonce=7362CAEA-9CA5-4B43-9BA3
The response type parameter can include both an id_token and a code:
response_type=id_token+code
.
When code is included in the response_type, the authorization endpoint validates if the user consented to the permissions indicated in the scope query parameter, and returns an authorization code to exchange for an access token.