Skip to main content
Version: 4.2

OAuthAnonymousPrincipal

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

An explicitly unauthenticated principal. OAuthClient assigns this to User on sign-out, because assigning null makes the property fall back to the host's principal and leaves the user authenticated under Windows or cookie authentication.

4.2.0+
public sealed class OAuthAnonymousPrincipal : ClaimsPrincipal

Constructors​

Instance member OAuthAnonymousPrincipal()​

Initializes a new instance of the OAuthAnonymousPrincipal class. Its identity has an empty authentication type, so IsAuthenticated — and therefore IsAuthenticated — is false.