MicrosoftIdentityConsentAndConditionalAccessHandler Class

Definition

Handler for Blazor specific APIs to handle incremental consent and conditional access.

public class MicrosoftIdentityConsentAndConditionalAccessHandler
type MicrosoftIdentityConsentAndConditionalAccessHandler = class
Public Class MicrosoftIdentityConsentAndConditionalAccessHandler
Inheritance
MicrosoftIdentityConsentAndConditionalAccessHandler

Constructors

MicrosoftIdentityConsentAndConditionalAccessHandler(IServiceProvider)

Initializes a new instance of the MicrosoftIdentityConsentAndConditionalAccessHandler class.

Properties

BaseUri

Base URI to use in forming the redirect.

IsBlazorServer

Boolean to determine if server is Blazor.

User

Current user.

Methods

ChallengeUser(String[], String, String)

Forces the user to consent to specific scopes and perform Conditional Access to get specific claims. Use on a Razor/Blazor page or controller to proactively ensure the scopes and/or claims before acquiring a token. The other mechanism HandleException(Exception) ensures claims and scopes requested by Azure AD after a failed token acquisition attempt. See https://aka.ms/ms-id-web/ca_incremental-consent for details.

HandleException(Exception)

For Blazor/Razor pages to process the exception from a user challenge.

Applies to