We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 810fbf9 commit 45c02adCopy full SHA for 45c02ad
README.md
@@ -100,12 +100,10 @@ Here is an example of how you can implement your own authentication and authoriz
100
``` csharp
101
public class CustomAuthorizeFilter : IUiAuthorizationFilter
102
{
103
- public bool Authorize(DashboardContext context)
+ public bool Authorize(HttpContext httpContext)
104
105
- var httpContext = context.GetHttpContext();
106
-
107
// Allow all authenticated users to see the Dashboard (potentially dangerous).
108
- return httpContext.User.Identity?.IsAuthenticated ?? false;
+ return httpContext.User.Identity is { IsAuthenticated: true };
109
}
110
111
```
0 commit comments