Skip to main content

CredentialResult

  • Namespace: PPDS.Auth.Credentials
  • Assembly: PPDS.Auth
  • Kind: Class

Summary

Result of creating a credential provider.

Members

Methods

Failed

CredentialResult Failed(string message, Exception exception)

Creates a failed result.

Succeeded

CredentialResult Succeeded(ServiceClient client, string identity, Nullable<DateTimeOffset> expiresAt)

Creates a successful result.

Properties

Client

ServiceClient Client { get; set; }

Gets the authenticated ServiceClient, if successful.

ErrorMessage

string ErrorMessage { get; set; }

Gets the error message, if authentication failed.

Exception

Exception Exception { get; set; }

Gets the exception, if authentication failed.

Identity

string Identity { get; set; }

Gets the identity string (username or app ID).

Success

bool Success { get; set; }

Gets whether the authentication was successful.

TokenExpiresAt

Nullable<DateTimeOffset> TokenExpiresAt { get; set; }

Gets the token expiration time.