OAuth2 - added function validateIdToken - fixed typo

This commit is contained in:
Marko Milić 2019-01-15 12:50:55 +01:00
parent 5dd93b7825
commit d2d83dfe58
2 changed files with 4 additions and 4 deletions

View File

@ -133,8 +133,8 @@ object ErrorMessages {
val Oauth2ThereIsNoUrlOfJwkSet = "OBP-20203: There is no an URL of OAuth 2.0 server's JWK set, published at a well-known URL."
val Oauth2BadJWTException = "OBP-20204: Bad JWT error. "
val Oauth2ParseException = "OBP-20205: Parse error. "
val Oauth2BadJOSEBException = "OBP-20206: Bad JSON Object Signing and Encryption (JOSE) exception. "
val Oauth2JOSEBException = "OBP-20207: Javascript Object Signing and Encryption (JOSE) exception. "
val Oauth2BadJOSEException = "OBP-20206: Bad JSON Object Signing and Encryption (JOSE) exception. "
val Oauth2JOSEException = "OBP-20207: Javascript Object Signing and Encryption (JOSE) exception. "
val InvalidAmount = "OBP-20054: Invalid amount. Please specify a valid value for amount."
val MissingQueryParams = "OBP-20055: These query parameters are missing: "

View File

@ -208,10 +208,10 @@ object JwtUtil {
} catch {
case e: BadJOSEException =>
// Invalid signature or claims (iss, aud, exp...)
Failure(ErrorMessages.Oauth2BadJWTException + e.getMessage, Full(e), Empty)
Failure(ErrorMessages.Oauth2BadJOSEException + e.getMessage, Full(e), Empty)
case e: JOSEException =>
// Internal processing exception
Failure(ErrorMessages.Oauth2JOSEBException + e.getMessage, Full(e), Empty)
Failure(ErrorMessages.Oauth2JOSEException + e.getMessage, Full(e), Empty)
}
}