-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
matrix-org/matrix-react-sdk
#11096Description
3.1.1. Authorization Code Flow Steps
The Authorization Code Flow goes through the following steps.
- Client prepares an Authentication Request containing the desired request parameters.
- Client sends the request to the Authorization Server.
- Authorization Server Authenticates the End-User.
- Authorization Server obtains End-User Consent/Authorization.
- Authorization Server sends the End-User back to the Client with an Authorization Code.
- Client requests a response using the Authorization Code at the Token Endpoint.
- Client receives a response that contains an ID Token and Access Token in the response body.
- Client validates the ID token and retrieves the End-User's Subject Identifier.
https://openid.net/specs/openid-connect-core-1_0.html#CodeFlowAuth
This task addresses steps 1-5
There are three scopes that you need to request access to:
openid- standard OIDC scopeurn:matrix:org.matrix.msc2967.client:api:*- gives full access to Client Server API. See MSC2967: API scopes for details of future scopesurn:matrix:org.matrix.msc2967.client:device:<generated device ID>- e.g.urn:matrix:org.matrix.msc2967.client:device:ABCDEFGHIJKL
So, a complete scope would be:
openid urn:matrix:org.matrix.msc2967.client:api:* urn:matrix:org.matrix.msc2967.client:device:ABCDEFGHIJKL
Resources
AC
- When
oidcNativeFlowis supported at Login, a single 'continue' button is rendered (like oidc-aware flow) - On clicking the continue button, a request to the configured authorization endpoint is made