Skip to content

Commit

Permalink
docs: fix policy-provider docs
Browse files Browse the repository at this point in the history
  • Loading branch information
NikiforovAll committed May 6, 2024
1 parent a86537f commit 329333b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/authorization/policy-provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

You can add automatic policy registration via `ProtectedResourcePolicyProvider` based on a simple convention. It means that you don't need to register policies manually.

The expected policy format is: `<resource>#<scope1>,<scope2>`, e.g: `my-workspace:workspaces:read,workspaces:delete`.
The expected policy format is: `<resource>#<scope1>,<scope2>`, e.g: `my-workspace#workspaces:read,workspaces:delete`.

## Usage

Expand Down Expand Up @@ -32,7 +32,7 @@ app.UseAuthentication();
app.UseAuthorization();
app.MapGet("/", () => "Hello World!")
.RequireAuthorization("my-workspace:workspaces:read"); // [!code highlight]
.RequireAuthorization("my-workspace#workspaces:read"); // [!code highlight]
app.Run();
```

0 comments on commit 329333b

Please sign in to comment.