You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Authentication in Blazor Hybrid apps is handled by native platform libraries, as they offer enhanced security guarantees that the browser sandbox can't offer. Authentication of native apps uses an OS-specific mechanism or via a federated protocol, such as [OpenID Connect (OIDC)](https://openid.net/connect/). Follow the guidance for the identity provider that you've selected for the app and then further integrate identity with Blazor using the guidance in this article.
19
19
@@ -121,7 +121,7 @@ Replace the preceding line of code with the following code. Add OpenID/MSAL code
@@ -377,7 +377,7 @@ public class CurrentThreadUserAuthenticationStateProvider : AuthenticationStateP
377
377
}
378
378
```
379
379
380
-
Using the alternative approach, only authorization services (<xref:Microsoft.Extensions.DependencyInjection.AuthorizationServiceCollectionExtensions.AddAuthorizationCore%2A>) and `CurrentThreadUserAuthenticationStateProvider` (`.AddScoped<AuthenticationStateProvider, CurrentThreadUserAuthenticationStateProvider>()`) are added to the service collection.
380
+
Using the alternative approach, only authorization services (<xref:Microsoft.Extensions.DependencyInjection.AuthorizationServiceCollectionExtensions.AddAuthorizationCore%2A>) and `CurrentThreadUserAuthenticationStateProvider` (`.TryAddScoped<AuthenticationStateProvider, CurrentThreadUserAuthenticationStateProvider>()`) are added to the service collection.
381
381
382
382
### Handle authentication within the `BlazorWebView` (Option 2)
383
383
@@ -451,7 +451,7 @@ In the `MauiProgram.CreateMauiApp` method of `MainWindow.cs`, add the authorizat
Authentication in Blazor Hybrid apps is handled by native platform libraries, as they offer enhanced security guarantees that the browser sandbox can't offer. Authentication of native apps uses an OS-specific mechanism or via a federated protocol, such as [OpenID Connect (OIDC)](https://openid.net/connect/). Follow the guidance for the identity provider that you've selected for the app and then further integrate identity with Blazor using the guidance in this article.
551
551
@@ -653,7 +653,7 @@ Replace the preceding line of code with the following code. Add OpenID/MSAL code
@@ -909,7 +909,7 @@ public class CurrentThreadUserAuthenticationStateProvider : AuthenticationStateP
909
909
}
910
910
```
911
911
912
-
Using the alternative approach, only authorization services (<xref:Microsoft.Extensions.DependencyInjection.AuthorizationServiceCollectionExtensions.AddAuthorizationCore%2A>) and `CurrentThreadUserAuthenticationStateProvider` (`.TryAddScoped<AuthenticationStateProvider, CurrentThreadUserAuthenticationStateProvider>()`) are added to the service collection.
912
+
Using the alternative approach, only authorization services (<xref:Microsoft.Extensions.DependencyInjection.AuthorizationServiceCollectionExtensions.AddAuthorizationCore%2A>) and `CurrentThreadUserAuthenticationStateProvider` (`.AddScoped<AuthenticationStateProvider, CurrentThreadUserAuthenticationStateProvider>()`) are added to the service collection.
913
913
914
914
### Handle authentication within the `BlazorWebView` (Option 2)
915
915
@@ -983,7 +983,7 @@ In the `MauiProgram.CreateMauiApp` method of `MainWindow.cs`, add the authorizat
0 commit comments