Partager via


ClaimsPrincipalFactory Class

Definition

Factory class to create ClaimsPrincipal objects.

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

Methods

FromHomeTenantIdAndHomeObjectId(String, String)

Instantiate a ClaimsPrincipal from a home account object ID and home 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 home tenant ID and home object ID (like in Microsoft Graph Web Hooks).

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