Show / Hide Table of Contents

Interface IAdminImpersonateService

Represents the service used by the admin UI to impersonate (run as) a user.

Namespace: IRM.AspNetCore.Identity.UI
Assembly: IRM.AspNetCore.Identity.UI.dll
Syntax
public interface IAdminImpersonateService

Methods

ImpersonateSignInAsync(String)

The currently signed in user impersonates the user matching userId.

Declaration
Task<IActionResult> ImpersonateSignInAsync(string userId)
Parameters
String userId

The unique identifier of the user to impersonate.

Returns
System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.IActionResult>

The task object representing the asynchronous operation, containing the Microsoft.AspNetCore.Mvc.IActionResult for the controller to return.

ImpersonateSignOutAsync()

Signs the current impersonated user out of the application.

Declaration
Task<IActionResult> ImpersonateSignOutAsync()
Returns
System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.IActionResult>

The task object representing the asynchronous operation, containing the Microsoft.AspNetCore.Mvc.IActionResult for the controller to return.

Back to top Generated by DocFX