@ -12,6 +12,14 @@ This module implements the domain logic and database integrations, but not provi
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).
## OpenIddict documentation
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.
@ -166,14 +186,16 @@ It will be executed first in `AuthenticationMiddleware` and can short-circuit th
Example a token request:
```cs
POST /connect/token
grant_type:password
client_id:AbpApp
client_secret:1q2w3e*
username:admin
password:1q2w3E*
scope:AbpAPI offline_access
```
POST /connect/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
grant_type=password&
client_id=AbpApp&
client_secret=1q2w3e*&
username=admin&
password=1q2w3E*&
scope=AbpAPI offline_access
```
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