@@ -28,31 +28,6 @@ generated the client ID and secret to configure your `OAuth2Middleware` with at
2828Once the authentication is successful, the user will be redirected to the ` redirect_uri ` and the ` request.user ` will
2929contain the user information obtained from the IDP.
3030
31- ## Access token
32-
33- When the user is authenticated, the ` request.user ` will contain the user information obtained from the IDP and
34- the ` request.auth ` will contain the authentication related information including the access token issued by the IDP. It
35- can be used to perform authorized requests to the IDP's API endpoints. Just make sure the token is issued with the
36- scopes required for the API endpoint.
37-
38- ::: details ` request.auth.provider.access_token `
39-
40- ``` mermaid
41- flowchart TB
42- subgraph level2["request (Starlette's Request object)"]
43- direction TB
44- subgraph level1["auth (Starlette's extended Auth Credentials)"]
45- direction TB
46- subgraph level0["provider (OAuth2 provider with client's credentials)"]
47- direction TB
48- token["access_token (Access token for the specified scopes)"]
49- end
50- end
51- end
52- ```
53-
54- :::
55-
5631## Claims mapping
5732
5833The ` Claims ` class includes permanent attributes like ` display_name ` , ` identity ` , ` picture ` , and ` email ` . It also allows
@@ -150,31 +125,7 @@ The request is considered invalid when one of the mandatory parameters, such as
150125request fails. And the errors that occur during the OAuth steps are considered authentication errors.
151126
152127<style >
153- .info , .details {
128+ .info {
154129 border : 0 ;
155130}
156-
157- g #level2 rect ,
158- g #level1 rect ,
159- g #level0 rect ,
160- g [id ^= " flowchart-token" ] rect {
161- color : #f6f6f7 !important ;
162- stroke : #3c3c43 !important ;
163- }
164-
165- g #level2 rect {
166- fill : #00948680 !important ;
167- }
168-
169- g #level1 rect {
170- fill : #2b75a080 !important ;
171- }
172-
173- g #level0 rect {
174- fill : #5c837480 !important ;
175- }
176-
177- g [id ^= " flowchart-token" ] rect {
178- fill : #44506980 !important ;
179- }
180131</style >
0 commit comments