Browse Source
Merge pull request #13855 from abpframework/maliming-patch-1
Update OpenIddict.md
pull/13856/head
liangshiwei
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
13 additions and
1 deletions
-
docs/en/Modules/OpenIddict.md
|
|
|
@ -330,7 +330,19 @@ public class MyClaimDestinationsProvider : IAbpOpenIddictClaimDestinationsProvid |
|
|
|
{ |
|
|
|
public virtual Task SetDestinationsAsync(AbpOpenIddictClaimDestinationsProviderContext context) |
|
|
|
{ |
|
|
|
// ... |
|
|
|
foreach (var claim in context.Claims) |
|
|
|
{ |
|
|
|
if (claim.Type == MyClaims.MyClaimsType) |
|
|
|
{ |
|
|
|
claim.SetDestinations(OpenIddictConstants.Destinations.AccessToken, OpenIddictConstants.Destinations.IdentityToken); |
|
|
|
} |
|
|
|
|
|
|
|
if (claim.Type == MyClaims.MyClaimsType2) |
|
|
|
{ |
|
|
|
claim.SetDestinations(OpenIddictConstants.Destinations.AccessToken); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return Task.CompletedTask; |
|
|
|
} |
|
|
|
} |
|
|
|
|