ClaimsPrincipalFactory Class

Definition

Factory class to create ClaimsPrincipal objects.

public static class ClaimsPrincipalFactory
type ClaimsPrincipalFactory = class
Public Class ClaimsPrincipalFactory
Inheritance
ClaimsPrincipalFactory

Methods

FromTenantIdAndObjectId(String, String)

Instantiate a ClaimsPrincipal from an account object ID and tenant ID. This can be useful when the web app subscribes to another service on behalf of the user and then is called back by a notification where the user is identified by their tenant ID and object ID (like in Microsoft Graph Web Hooks).

Applies to