Share via


AccountController Class

Definition

Controller used in web apps to manage accounts.

[Microsoft.AspNetCore.Authorization.AllowAnonymous]
[Microsoft.AspNetCore.Mvc.Area("MicrosoftIdentity")]
[Microsoft.AspNetCore.Mvc.NonController]
[Microsoft.AspNetCore.Mvc.Route("[area]/[controller]/[action]")]
public class AccountController : Microsoft.AspNetCore.Mvc.Controller
[<Microsoft.AspNetCore.Authorization.AllowAnonymous>]
[<Microsoft.AspNetCore.Mvc.Area("MicrosoftIdentity")>]
[<Microsoft.AspNetCore.Mvc.NonController>]
[<Microsoft.AspNetCore.Mvc.Route("[area]/[controller]/[action]")>]
type AccountController = class
    inherit Controller
Public Class AccountController
Inherits Controller
Inheritance
AccountController
Attributes

Constructors

AccountController(IOptionsMonitor<MicrosoftIdentityOptions>)

Constructor of AccountController from MicrosoftIdentityOptions This constructor is used by dependency injection.

Methods

Challenge(String, String, String, String, String, String, String)

Challenges the user.

EditProfile(String)

In B2C applications, handles the Edit Profile policy.

ResetPassword(String)

In B2C applications handles the Reset password policy.

SignIn(String, String)

Handles user sign in.

SignOut(String)

Handles the user sign-out.

Applies to