mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 19:56:59 +00:00
OAuth2 - added function validateIdToken - fixed typo
This commit is contained in:
parent
5dd93b7825
commit
d2d83dfe58
@ -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: "
|
||||
|
||||
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user