Adding additional bits to mask for various validation errors.

This commit is contained in:
Jamie Stackhouse 2015-07-17 16:40:52 -03:00
parent a6f24f4cf0
commit 3eddded2f3
1 changed files with 9 additions and 4 deletions

View File

@ -16,10 +16,15 @@ const (
ValidationErrorMalformed uint32 = 1 << iota // Token is malformed ValidationErrorMalformed uint32 = 1 << iota // Token is malformed
ValidationErrorUnverifiable // Token could not be verified because of signing problems ValidationErrorUnverifiable // Token could not be verified because of signing problems
ValidationErrorSignatureInvalid // Signature validation failed ValidationErrorSignatureInvalid // Signature validation failed
ValidationErrorExpired // Exp validation failed
ValidationErrorNotValidYet // NBF validation failed // Standard Claim validation errors
ValidationErrorIssuedAt // IAT validation failed ValidationErrorAudience // AUD validation failed
ValidationErrorClaimsInvalid // Generic claims validation error ValidationErrorExpired // EXP validation failed
ValidationErrorIssuedAt // IAT validation failed
ValidationErrorIssuer // ISS validation failed
ValidationErrorNotValidYet // NBF validation failed
ValidationErrorId // JTI validation failed
ValidationErrorClaimsInvalid // Generic claims validation error
) )
// The error from Parse if token is not valid // The error from Parse if token is not valid