mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 17:17:09 +00:00
bugfix/Add consumer by certificate during OAuth 2 authentication
This commit is contained in:
parent
c802dd2a88
commit
8ec252dbe3
@ -3045,10 +3045,10 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
|
||||
}
|
||||
}
|
||||
} else if (hasAnOAuthHeader(cc.authReqHeaderField)) { // OAuth 1
|
||||
getUserFromOAuthHeaderFuture(cc)
|
||||
getUserFromOAuthHeaderFuture(cc.copy(consumer = consumerByCertificate))
|
||||
} else if (hasAnOAuth2Header(cc.authReqHeaderField)) { // OAuth 2
|
||||
for {
|
||||
(user, callContext) <- OAuth2Login.getUserFuture(cc)
|
||||
(user, callContext) <- OAuth2Login.getUserFuture(cc.copy(consumer = consumerByCertificate))
|
||||
} yield {
|
||||
(user, callContext)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user