Skip to content

Commit

Permalink
split
Browse files Browse the repository at this point in the history
  • Loading branch information
oskogstad committed Jan 30, 2025
1 parent 9b63326 commit ac8dcf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void Configure(AuthorizationOptions options)
{
var userScopes = context.User
.FindAll(AuthorizationPolicyBuilderExtensions.ScopeClaim)
.Select(s => s.Value)
.SelectMany(s => s.Value.Split(" "))
.ToList();

return userScopes.Contains(AuthorizationScope.EndUser) ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void Configure(AuthorizationOptions options)
{
var userScopes = context.User
.FindAll(AuthorizationPolicyBuilderExtensions.ScopeClaim)
.Select(s => s.Value)
.SelectMany(s => s.Value.Split(" "))
.ToList();

return userScopes.Contains(AuthorizationScope.EndUser) ||
Expand Down

0 comments on commit ac8dcf0

Please sign in to comment.