NavigationManagerExtensions.NavigateToLogin Method
Definition
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
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)
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
- manager
- NavigationManager
The NavigationManager.
- 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)
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
- manager
- NavigationManager
The NavigationManager.
- 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.