© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•12mo ago•
1 reply
Eple

Purpose of User Identity Check

In the provided sample: BlazorWebAssemblyStandaloneWithIdentity/Backend/Program.cs#L107,

the code checks
user.Identity is not null && user.Identity.IsAuthenticated
user.Identity is not null && user.Identity.IsAuthenticated
and also applies
.RequireAuthorization()
.RequireAuthorization()
.

What is the purpose of this check? Can it be removed?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Purpose of Dependency Injection
C#CC# / help
2y ago
AspNet.Identity with custom user data
C#CC# / help
3y ago
❔ Why isn't one of my Identity user field being updated?
C#CC# / help
3y ago