C# Class Zitadel.Authentication.ZitadelDefaults

A set of default values for Zitadel themed authentication/authorization.
Mostrar archivo Open project: caos/zitadel-net Class Usage Examples

Public Methods

Method Description
OrganizationRoleClaimName ( string orgId ) : string

Constructor for organisation specific role claims. They are used to specify roles on a specific organization. Check for those roles with the policies added with AuthorizationOptionsExtensions.AddZitadelOrganizationRolePolicy or inside a method with ClaimsPrincipalExtensions.IsInRole(System.Security.Claims.ClaimsPrincipal,string,string[]).

Method Details

OrganizationRoleClaimName() public static method

Constructor for organisation specific role claims. They are used to specify roles on a specific organization. Check for those roles with the policies added with AuthorizationOptionsExtensions.AddZitadelOrganizationRolePolicy or inside a method with ClaimsPrincipalExtensions.IsInRole(System.Security.Claims.ClaimsPrincipal,string,string[]).
public static OrganizationRoleClaimName ( string orgId ) : string
orgId string The id of the organization.
return string