Table of Contents

Class AuthorisingWrapperPrincipal

Namespace
The.Security
Assembly
Instagile.dll
public sealed class AuthorisingWrapperPrincipal : IPrincipal
Inheritance
AuthorisingWrapperPrincipal
Implements
Inherited Members
Extension Methods

Constructors

AuthorisingWrapperPrincipal(IPrincipal)

public AuthorisingWrapperPrincipal(IPrincipal inner)

Parameters

inner IPrincipal

Properties

AuthenticatedIdentity

public Identity AuthenticatedIdentity { get; }

Property Value

Identity

AuthenticationCredentials

public Credentials? AuthenticationCredentials { get; }

Property Value

Credentials

Error

public AuthenticationFailure? Error { get; }

Property Value

AuthenticationFailure

IsAuthenticated

Whether authentication was successful. If true, the AuthenticatedIdentity property is non-null. If false, the Error property is non-null.

public bool IsAuthenticated { get; }

Property Value

bool

Methods

AssertAuthorisation(Permission)

public void AssertAuthorisation(Permission claim)

Parameters

claim Permission

CheckAuthorisation(Permission)

public bool CheckAuthorisation(Permission claim)

Parameters

claim Permission

Returns

bool

EnumerateRoles()

public IEnumerable<string> EnumerateRoles()

Returns

IEnumerable<string>

Remarks

If HasRole() has already returned true for some role, it is not guaranteed to be returned from EnumerateRoles().

EnumerateTenants()

public IEnumerable<Guid> EnumerateTenants()

Returns

IEnumerable<Guid>

Remarks

If CheckAuthorisation() has already returned true for some tenant, it is not guaranteed to be returned from EnumerateTenants().

HasRole(string)

public bool HasRole(string name)

Parameters

name string

Returns

bool