@@ -90,8 +90,6 @@ Claims(
90
90
)
91
91
```
92
92
93
- ::: info NOTE
94
-
95
93
Not all IDPs provide the ` first_name ` and the ` last_name ` attributes already joined as in the example above, or
96
94
the email in a list. So you are given the flexibility using transformer function to map the attributes as you want.
97
95
@@ -104,14 +102,20 @@ flowchart LR
104
102
Transform --> IDPUserData
105
103
```
106
104
107
- :::
108
-
109
105
## User provisioning
110
106
111
107
User provisioning refers to the process of creating, updating, and deleting user accounts within the OAuth2 IDP and
112
108
synchronizing that information with your FastAPI application's database. There are two approaches to user provisioning
113
109
and both require the user claims to be mapped properly for creating a new user or updating an existing one.
114
110
111
+ ::: info NOTE
112
+
113
+ In both scenarios, it is recommended to use the ` identity ` attribute for uniquely identifying the user from the
114
+ database. So if the application uses or plans to use multiple IDPs, make sure to include the ` provider ` attribute when
115
+ calculating the ` identity ` attribute.
116
+
117
+ :::
118
+
115
119
### Automatic provisioning
116
120
117
121
After successful authentication, you can automatically create a user in your application's database using the
@@ -125,14 +129,6 @@ approach is useful when there missing mandatory attributes in `request.user` for
125
129
database. You need to define a route for provisioning and provide it as ` redirect_uri ` , so
126
130
the [ user context] ( /integration/integration#user-context ) will be available for usage.
127
131
128
- ::: info NOTE
129
-
130
- In both scenarios, it is recommended to use the ` identity ` attribute for uniquely identifying the user from the
131
- database. So if the application uses or plans to use multiple IDPs, make sure to include the ` provider ` attribute when
132
- calculating the ` identity ` attribute.
133
-
134
- :::
135
-
136
132
<style >
137
133
.info , .details {
138
134
border : 0 ;
0 commit comments