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
Cause
The cause of the denial.
public TenantTokenDenialCause Cause { get; }
Property Value
OAuthError
The OAuth error code, if the identity service sent one.
public string OAuthError { get; }
Property Value
ErrorDescription
The OAuth error description, if the identity service sent one.
public string ErrorDescription { get; }
Property Value
TargetSite
public MethodBase TargetSite { get; }
Property Value
Message
public string Message { get; }
Property Value
Data
public IDictionary Data { get; }
Property Value
InnerException
public Exception InnerException { get; }
Property Value
HelpLink
public string HelpLink { get; set; }
Property Value
Source
public string Source { get; set; }
Property Value
HResult
public int HResult { get; set; }
Property Value
StackTrace
public string StackTrace { get; }
Property Value
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).