Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

NavigationManagerExtensions.NavigateToLogin Method

Definition

Namespace:
Microsoft.AspNetCore.Components.WebAssembly.Authentication
Assembly:
Microsoft.AspNetCore.Components.WebAssembly.Authentication.dll
Package:
Microsoft.AspNetCore.Components.WebAssembly.Authentication v10.0.0
Package:
Microsoft.AspNetCore.Components.WebAssembly.Authentication v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.Components.WebAssembly.Authentication v7.0.5
Package:
Microsoft.AspNetCore.Components.WebAssembly.Authentication v8.0.19
Package:
Microsoft.AspNetCore.Components.WebAssembly.Authentication v9.0.8

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

Name Description
NavigateToLogin(NavigationManager, String)

Initiates a login operation by navigating to the login endpoint.

NavigateToLogin(NavigationManager, String, InteractiveRequestOptions)

Initiates a login operation by navigating to the login endpoint.

NavigateToLogin(NavigationManager, String)

Source:
NavigationManagerExtensions.cs
Source:
NavigationManagerExtensions.cs
Source:
NavigationManagerExtensions.cs
Source:
NavigationManagerExtensions.cs
Source:
NavigationManagerExtensions.cs

Initiates a login operation by navigating to the login endpoint.

public static void NavigateToLogin(this Microsoft.AspNetCore.Components.NavigationManager manager, string loginPath);
static member NavigateToLogin : Microsoft.AspNetCore.Components.NavigationManager * string -> unit
<Extension()>
Public Sub NavigateToLogin (manager As NavigationManager, loginPath As String)

Parameters

loginPath
String

The path to the login url.

Remarks

The navigation includes state that is added to the browser history entry to prevent login operations performed from different contexts.

Applies to

NavigateToLogin(NavigationManager, String, InteractiveRequestOptions)

Source:
NavigationManagerExtensions.cs
Source:
NavigationManagerExtensions.cs
Source:
NavigationManagerExtensions.cs
Source:
NavigationManagerExtensions.cs
Source:
NavigationManagerExtensions.cs

Initiates a login operation by navigating to the login endpoint.

public static void NavigateToLogin(this Microsoft.AspNetCore.Components.NavigationManager manager, string loginPath, Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions request);
static member NavigateToLogin : Microsoft.AspNetCore.Components.NavigationManager * string * Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions -> unit
<Extension()>
Public Sub NavigateToLogin (manager As NavigationManager, loginPath As String, request As InteractiveRequestOptions)

Parameters

loginPath
String

The path to the login url.

request
InteractiveRequestOptions

The InteractiveRequestOptions containing the authorization details.

Remarks

The navigation includes state that is added to the browser history entry to prevent login operations performed from different contexts.

Applies to


Feedback

Was this page helpful?