You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/en/Modules/OpenIddict.md
+32-11
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,14 @@ This module implements the domain logic and database integrations, but not provi
12
12
13
13
This module is based on the [Identity Module](Identity.md) and have an [integration package](https://www.nuget.org/packages/Volo.Abp.Account.Web.IdentityServer) with the [Account Module](Account.md).
14
14
15
+
## OpenIddict documentation
16
+
17
+
For more details about OpenIddict, please refer to its official documentation and Github.
I will briefly introduce the principle of OpenIddict so that everyone can quickly understand it.
160
180
@@ -166,14 +186,16 @@ It will be executed first in `AuthenticationMiddleware` and can short-circuit th
166
186
167
187
Example a token request:
168
188
169
-
```cs
170
-
POST/connect/token
171
-
grant_type:password
172
-
client_id:AbpApp
173
-
client_secret:1q2w3e*
174
-
username:admin
175
-
password:1q2w3E*
176
-
scope:AbpAPIoffline_access
189
+
```
190
+
POST /connect/token HTTP/1.1
191
+
Content-Type: application/x-www-form-urlencoded
192
+
193
+
grant_type=password&
194
+
client_id=AbpApp&
195
+
client_secret=1q2w3e*&
196
+
username=admin&
197
+
password=1q2w3E*&
198
+
scope=AbpAPI offline_access
177
199
```
178
200
179
201
This request will be processed by various handlers. They will confirm the endpoint type of the request, check `http/https`, verify that the request parameters (`client. scope etc`) are valid and exist in the database, etc. Various protocol checks. And build a `OpenIddictRequest` object, If there are any errors, the response content may be set and directly short-circuit the current request.
@@ -190,8 +212,7 @@ If you need to customize OpenIddict, you need to replace/delete/add new handlers
Copy file name to clipboardexpand all lines: modules/openiddict/src/Volo.Abp.OpenIddict.AspNetCore/Volo/Abp/OpenIddict/AbpOpenIddictAspNetCoreModule.cs
+2-1
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,8 @@ public override void PreConfigureServices(ServiceConfigurationContext context)
0 commit comments