![]() The Custom Authentication State Provider is registered as a service in Program.cs: () Sets current user to anonymous and tells the server that the state has changed Var task = GetAuthenticationStateAsync() Sets current user to the new user and tells the server that the state has changed Var task = Task.FromResult(new AuthenticationState(CurrentUser)) Public override Task GetAuthenticationStateAsync() Returns the current authentication state Null) //null here indicates the user is not authorized. I really wanted to continue to use Blazor's handy component, which simply requires me to declare a Cascading Parameter of type Task and await it on component initialization. I am using Duo's SSO API for generic SAML 2.0 service providers, which only performs authentication, returning the user's email address (which doubles as the username), first name and last name. I simply copied Saml.cs into my project folder. NET Core Blazor using Jitbit's simple SAML 2.0 Client Library. I am building a demo of SAML 2.0 Authentication in ASP. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |