Skip to content

Commit

Permalink
fix policy, require base scope
Browse files Browse the repository at this point in the history
  • Loading branch information
oskogstad committed Nov 19, 2024
1 parent 607d2e3 commit 87dac11
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 @@ -39,7 +39,7 @@ public void Configure(AuthorizationOptions options)
.RequireScope(AuthorizationScope.ServiceProvider));

options.AddPolicy(AuthorizationPolicy.ServiceProviderSearch, builder => builder
.Combine(options.DefaultPolicy)
.Combine(options.GetPolicy(AuthorizationPolicy.ServiceProvider)!)
.RequireScope(AuthorizationScope.ServiceProviderSearch));

options.AddPolicy(AuthorizationPolicy.Testing, builder => builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void Configure(AuthorizationOptions options)
.RequireScope(AuthorizationScope.ServiceProvider));

options.AddPolicy(AuthorizationPolicy.ServiceProviderSearch, builder => builder
.Combine(options.DefaultPolicy)
.Combine(options.GetPolicy(AuthorizationPolicy.ServiceProvider)!)
.RequireScope(AuthorizationScope.ServiceProviderSearch));

options.AddPolicy(AuthorizationPolicy.Testing, builder => builder
Expand Down

0 comments on commit 87dac11

Please sign in to comment.