Document the token formats supported by OpenIddict 3.0

This commit is contained in:
Kévin Chalet
2021-01-25 17:27:19 +01:00
parent 05e606bc1e
commit ecc8a7ae8a
4 changed files with 114 additions and 1 deletions

View File

@@ -79,6 +79,7 @@ Grant type permissions limit the grant types a client application is allowed to
| Refresh token | `OpenIddictConstants.Permissions.GrantTypes.RefreshToken` |
To add a custom grant type permission, you can use the following pattern:
```csharp
OpenIddictConstants.Permissions.Prefixes.GrantType + "custom_flow_name"
```
@@ -141,6 +142,7 @@ services.AddOpenIddict()
Scope permissions limit the scopes (standard or custom) a client application is allowed to use.
> [!NOTE]
> The `openid` and `offline_access` scopes are special-cased by OpenIddict and don't require explicit permissions.
### Supported permissions
@@ -154,6 +156,7 @@ Scope permissions limit the scopes (standard or custom) a client application is
| roles | `OpenIddictConstants.Permissions.Scopes.Roles` |
To add a custom scope permission, you can use the following pattern:
```csharp
OpenIddictConstants.Permissions.Prefixes.Scope + "custom_scope_name"
```