Skip to main content

TenantTokenExchangeDeniedException

Namespace: Meshmakers.Octo.Sdk.ServiceClient.Authentication

No token for the tenant could be obtained. The message names the tenant and the cause; the root-tenant token is never used instead.

public class TenantTokenExchangeDeniedException : ServiceClientException, ISerializable

Inheritance Object → Exception → ServiceClientException → TenantTokenExchangeDeniedException
Implements ISerializable

Properties​

TenantId​

The tenant a token was requested for.

public string TenantId { get; }

Property Value​

String

Cause​

The cause of the denial.

public TenantTokenDenialCause Cause { get; }

Property Value​

TenantTokenDenialCause

OAuthError​

The OAuth error code, if the identity service sent one.

public string OAuthError { get; }

Property Value​

String

ErrorDescription​

The OAuth error description, if the identity service sent one.

public string ErrorDescription { get; }

Property Value​

String

TargetSite​

public MethodBase TargetSite { get; }

Property Value​

MethodBase

Message​

public string Message { get; }

Property Value​

String

Data​

public IDictionary Data { get; }

Property Value​

IDictionary

InnerException​

public Exception InnerException { get; }

Property Value​

Exception

public string HelpLink { get; set; }

Property Value​

String

Source​

public string Source { get; set; }

Property Value​

String

HResult​

public int HResult { get; set; }

Property Value​

Int32

StackTrace​

public string StackTrace { get; }

Property Value​

String

Constructors​

TenantTokenExchangeDeniedException(String, TenantTokenDenialCause, String, Exception)​

Creates the exception.

public TenantTokenExchangeDeniedException(string tenantId, TenantTokenDenialCause cause, string oauthError, Exception inner)

Parameters​

tenantId String
The tenant a token was requested for.

cause TenantTokenDenialCause
The cause.

oauthError String
The OAuth error code of the identity service, if any (never a token).

inner Exception
The inner exception.

TenantTokenExchangeDeniedException(String, TenantTokenDenialCause, String, Exception, String)​

Creates the exception with the OAuth error description of the identity service.

public TenantTokenExchangeDeniedException(string tenantId, TenantTokenDenialCause cause, string oauthError, Exception inner, string errorDescription)

Parameters​

tenantId String
The tenant a token was requested for.

cause TenantTokenDenialCause
The cause.

oauthError String
The OAuth error code of the identity service, if any (never a token).

inner Exception
The inner exception.

errorDescription String
The OAuth error description of the identity service, if any; shown for TenantTokenDenialCause.TenantUnavailable (never a token).