Auth0-PHP

InvalidTokenException extends Exception
in package
implements Auth0Exception

Tags
codeCoverageIgnore

Interfaces, Classes, Traits and Enums

Auth0Exception
Represents all errors generated by SDK itself.

Table of Contents

MSG_BAD_SEPARATORS  = 'The JWT string must contain two dots'
MSG_BAD_SIGNATURE  = 'Cannot verify signature'
MSG_BAD_SIGNATURE_INCOMPATIBLE_ALGORITHM  = 'Cannot verify signature: Key uses an incompatible signing algorithm'
MSG_BAD_SIGNATURE_MISSING_KID  = 'Cannot verify signature: JWKS did not contain the key specified by the token'
MSG_MISMATCHED_AUD_CLAIM  = 'Audience (aud) claim mismatch in the token; expected "%s", found "%s"'
MSG_MISMATCHED_AUTH_TIME_CLAIM  = 'Authentication Time (auth_time) claim in the token indicates that too much time has passed since the last end-user authentication. Current time %d is after last auth at %d'
MSG_MISMATCHED_AZP_CLAIM  = 'Authorized Party (azp) claim mismatch in the ID token; expected "%s", found "%s"'
MSG_MISMATCHED_EXP_CLAIM  = 'Expiration Time (exp) claim error in the token; current time %d is after expiration time %d'
MSG_MISMATCHED_ISS_CLAIM  = 'Issuer (iss) claim mismatch in the token; expected "%s", found "%s"'
MSG_MISMATCHED_NONCE_CLAIM  = 'Nonce (nonce) claim mismatch in the token; expected "%s", found "%s"'
MSG_MISMATCHED_ORG_ID_CLAIM  = 'Organization Id (org_id) claim value mismatch in the token; expected "%s", found "%s"'
MSG_MISSING_ALG_HEADER  = 'Provided token is missing a alg header'
MSG_MISSING_AUDIENCE_CLAIM  = 'Audience (aud) claim must be a string or array of strings present in the token'
MSG_MISSING_AUTH_TIME_CLAIM  = 'Authentication Time (auth_time) claim must be a number present in the token when Max Age is specified'
MSG_MISSING_AZP_CLAIM  = 'Authorized Party (azp) claim must be a string present in the token when Audience (aud) claim has multiple values'
MSG_MISSING_EXP_CLAIM  = 'Expiration Time (exp) claim must be a number present in the token'
MSG_MISSING_IAT_CLAIM  = 'Issued At (iat) claim must be a number present in the token'
MSG_MISSING_ISS_CLAIM  = 'Issuer (iss) claim must be a string present in the token'
MSG_MISSING_KID_HEADER  = 'Provided token is missing a kid header'
MSG_MISSING_NONCE_CLAIM  = 'Nonce (nonce) claim must be a string present in the token'
MSG_MISSING_ORG_ID_CLAIM  = 'Organization Id (org_id) claim must be a string present in the token'
MSG_MISSING_SUB_CLAIM  = 'Subject (sub) claim must be a string present in the token'
MSG_REQUIRES_CLIENT_SECRET  = 'Cannot verify signature: Client secret must be configured to verify HS256 signatures'
MSG_REQUIRES_JWKS_URI  = 'Cannot verify signature: JWKS uri was not configured properly'
MSG_UNEXPECTED_SIGNING_ALGORITHM  = 'Expected token signed with "%s" algorithm, but token uses "%s"'
MSG_UNSUPPORTED_SIGNING_ALGORITHM  = 'Signature algorithm of "%s" is not supported. Expected the token to be signed with "RS256" or "HS256"'
badSeparators()  : self
badSignature()  : self
badSignatureIncompatibleAlgorithm()  : self
badSignatureMissingKid()  : self
jsonError()  : self
mismatchedAudClaim()  : self
mismatchedAuthTimeClaim()  : self
mismatchedAzpClaim()  : self
mismatchedExpClaim()  : self
mismatchedIssClaim()  : self
mismatchedNonceClaim()  : self
mismatchedOrgIdClaim()  : self
missingAlgHeader()  : self
missingAudienceClaim()  : self
missingAuthTimeClaim()  : self
missingAzpClaim()  : self
missingExpClaim()  : self
missingIatClaim()  : self
missingIssClaim()  : self
missingKidHeader()  : self
missingNonceClaim()  : self
missingOrgIdClaim()  : self
missingSubClaim()  : self
requiresClientSecret()  : self
requiresJwksUri()  : self
unexpectedSigningAlgorithm()  : self
unsupportedSigningAlgorithm()  : self

Constants

MSG_BAD_SIGNATURE_INCOMPATIBLE_ALGORITHM

public mixed MSG_BAD_SIGNATURE_INCOMPATIBLE_ALGORITHM = 'Cannot verify signature: Key uses an incompatible signing algorithm'

MSG_BAD_SIGNATURE_MISSING_KID

public mixed MSG_BAD_SIGNATURE_MISSING_KID = 'Cannot verify signature: JWKS did not contain the key specified by the token'

MSG_MISMATCHED_AUD_CLAIM

public mixed MSG_MISMATCHED_AUD_CLAIM = 'Audience (aud) claim mismatch in the token; expected "%s", found "%s"'

MSG_MISMATCHED_AUTH_TIME_CLAIM

public mixed MSG_MISMATCHED_AUTH_TIME_CLAIM = 'Authentication Time (auth_time) claim in the token indicates that too much time has passed since the last end-user authentication. Current time %d is after last auth at %d'

MSG_MISMATCHED_AZP_CLAIM

public mixed MSG_MISMATCHED_AZP_CLAIM = 'Authorized Party (azp) claim mismatch in the ID token; expected "%s", found "%s"'

MSG_MISMATCHED_EXP_CLAIM

public mixed MSG_MISMATCHED_EXP_CLAIM = 'Expiration Time (exp) claim error in the token; current time %d is after expiration time %d'

MSG_MISMATCHED_ISS_CLAIM

public mixed MSG_MISMATCHED_ISS_CLAIM = 'Issuer (iss) claim mismatch in the token; expected "%s", found "%s"'

MSG_MISMATCHED_NONCE_CLAIM

public mixed MSG_MISMATCHED_NONCE_CLAIM = 'Nonce (nonce) claim mismatch in the token; expected "%s", found "%s"'

MSG_MISMATCHED_ORG_ID_CLAIM

public mixed MSG_MISMATCHED_ORG_ID_CLAIM = 'Organization Id (org_id) claim value mismatch in the token; expected "%s", found "%s"'

MSG_MISSING_ALG_HEADER

public mixed MSG_MISSING_ALG_HEADER = 'Provided token is missing a alg header'

MSG_MISSING_AUDIENCE_CLAIM

public mixed MSG_MISSING_AUDIENCE_CLAIM = 'Audience (aud) claim must be a string or array of strings present in the token'

MSG_MISSING_AUTH_TIME_CLAIM

public mixed MSG_MISSING_AUTH_TIME_CLAIM = 'Authentication Time (auth_time) claim must be a number present in the token when Max Age is specified'

MSG_MISSING_AZP_CLAIM

public mixed MSG_MISSING_AZP_CLAIM = 'Authorized Party (azp) claim must be a string present in the token when Audience (aud) claim has multiple values'

MSG_MISSING_EXP_CLAIM

public mixed MSG_MISSING_EXP_CLAIM = 'Expiration Time (exp) claim must be a number present in the token'

MSG_MISSING_IAT_CLAIM

public mixed MSG_MISSING_IAT_CLAIM = 'Issued At (iat) claim must be a number present in the token'

MSG_MISSING_ISS_CLAIM

public mixed MSG_MISSING_ISS_CLAIM = 'Issuer (iss) claim must be a string present in the token'

MSG_MISSING_KID_HEADER

public mixed MSG_MISSING_KID_HEADER = 'Provided token is missing a kid header'

MSG_MISSING_NONCE_CLAIM

public mixed MSG_MISSING_NONCE_CLAIM = 'Nonce (nonce) claim must be a string present in the token'

MSG_MISSING_ORG_ID_CLAIM

public mixed MSG_MISSING_ORG_ID_CLAIM = 'Organization Id (org_id) claim must be a string present in the token'

MSG_MISSING_SUB_CLAIM

public mixed MSG_MISSING_SUB_CLAIM = 'Subject (sub) claim must be a string present in the token'

MSG_REQUIRES_CLIENT_SECRET

public mixed MSG_REQUIRES_CLIENT_SECRET = 'Cannot verify signature: Client secret must be configured to verify HS256 signatures'

MSG_REQUIRES_JWKS_URI

public mixed MSG_REQUIRES_JWKS_URI = 'Cannot verify signature: JWKS uri was not configured properly'

MSG_UNEXPECTED_SIGNING_ALGORITHM

public mixed MSG_UNEXPECTED_SIGNING_ALGORITHM = 'Expected token signed with "%s" algorithm, but token uses "%s"'

MSG_UNSUPPORTED_SIGNING_ALGORITHM

public mixed MSG_UNSUPPORTED_SIGNING_ALGORITHM = 'Signature algorithm of "%s" is not supported. Expected the token to be signed with "RS256" or "HS256"'

Methods

badSeparators()

public static badSeparators([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

badSignature()

public static badSignature([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

badSignatureIncompatibleAlgorithm()

public static badSignatureIncompatibleAlgorithm([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

badSignatureMissingKid()

public static badSignatureMissingKid([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

jsonError()

public static jsonError(string $message[, Throwable|null $previous = null ]) : self
Parameters
$message : string
$previous : Throwable|null = null
Return values
self

mismatchedAudClaim()

public static mismatchedAudClaim(string $expected, string $found[, Throwable|null $previous = null ]) : self
Parameters
$expected : string
$found : string
$previous : Throwable|null = null
Return values
self

mismatchedAuthTimeClaim()

public static mismatchedAuthTimeClaim(int $now, int $expired[, Throwable|null $previous = null ]) : self
Parameters
$now : int
$expired : int
$previous : Throwable|null = null
Return values
self

mismatchedAzpClaim()

public static mismatchedAzpClaim(string $expected, string $found[, Throwable|null $previous = null ]) : self
Parameters
$expected : string
$found : string
$previous : Throwable|null = null
Return values
self

mismatchedExpClaim()

public static mismatchedExpClaim(int $now, int $expired[, Throwable|null $previous = null ]) : self
Parameters
$now : int
$expired : int
$previous : Throwable|null = null
Return values
self

mismatchedIssClaim()

public static mismatchedIssClaim(string $expected, string $found[, Throwable|null $previous = null ]) : self
Parameters
$expected : string
$found : string
$previous : Throwable|null = null
Return values
self

mismatchedNonceClaim()

public static mismatchedNonceClaim(string $expected, string $found[, Throwable|null $previous = null ]) : self
Parameters
$expected : string
$found : string
$previous : Throwable|null = null
Return values
self

mismatchedOrgIdClaim()

public static mismatchedOrgIdClaim(string $expected, string $found[, Throwable|null $previous = null ]) : self
Parameters
$expected : string
$found : string
$previous : Throwable|null = null
Return values
self

missingAlgHeader()

public static missingAlgHeader([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

missingAudienceClaim()

public static missingAudienceClaim([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

missingAuthTimeClaim()

public static missingAuthTimeClaim([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

missingAzpClaim()

public static missingAzpClaim([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

missingExpClaim()

public static missingExpClaim([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

missingIatClaim()

public static missingIatClaim([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

missingIssClaim()

public static missingIssClaim([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

missingKidHeader()

public static missingKidHeader([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

missingNonceClaim()

public static missingNonceClaim([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

missingOrgIdClaim()

public static missingOrgIdClaim([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

missingSubClaim()

public static missingSubClaim([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

requiresClientSecret()

public static requiresClientSecret([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

requiresJwksUri()

public static requiresJwksUri([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

unexpectedSigningAlgorithm()

public static unexpectedSigningAlgorithm(string $expected, string $found[, Throwable|null $previous = null ]) : self
Parameters
$expected : string
$found : string
$previous : Throwable|null = null
Return values
self

unsupportedSigningAlgorithm()

public static unsupportedSigningAlgorithm(string $algorithm[, Throwable|null $previous = null ]) : self
Parameters
$algorithm : string
$previous : Throwable|null = null
Return values
self

Search results