ClaimsPrincipalFactory Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Factory class to create System.Security.Claims.ClaimsPrincipal objects.
public static class ClaimsPrincipalFactory
type ClaimsPrincipalFactory = class
Public Class ClaimsPrincipalFactory
- Inheritance
-
System.ObjectClaimsPrincipalFactory
Methods
FromTenantIdAndObjectId(String, String) |
Instantiate a System.Security.Claims.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). |