mirror of
https://gitee.com/dcren/openiddict-documentation.git
synced 2025-09-22 20:13:32 +08:00
Update the documentation pages
This commit is contained in:
@@ -92,7 +92,8 @@ In the typical case, granted scopes can be used to determine what claims are all
|
||||
// but you may want to allow the user to uncheck specific scopes.
|
||||
// For that, simply restrict the list of scopes before calling SetScopes().
|
||||
principal.SetScopes(request.GetScopes());
|
||||
principal.SetResources(await _scopeManager.ListResourcesAsync(principal.GetScopes()).ToListAsync());
|
||||
principal.SetResources(
|
||||
await _scopeManager.ListResourcesAsync(principal.GetScopes()).ToListAsync());
|
||||
|
||||
foreach (var claim in principal.Claims)
|
||||
{
|
||||
|
Reference in New Issue
Block a user