We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b51f3a + be62898 commit 514ad51Copy full SHA for 514ad51
oauth2-server-core/src/main/java/nl/myndocs/oauth2/CallRouter.kt
@@ -160,6 +160,10 @@ class CallRouter(
160
"token" -> routeAccessTokenRedirect(callContext, credentials)
161
else -> throw InvalidGrantException("'grant_type' with value '$responseType' not allowed")
162
}
163
+ } catch (invalidIdentityException: InvalidIdentityException) {
164
+ callContext.respondStatus(STATUS_UNAUTHORIZED)
165
+ callContext.respondJson(invalidIdentityException.toMap())
166
+ return RedirectRouterResponse(false)
167
} catch (oauthException: OauthException) {
168
callContext.respondStatus(STATUS_BAD_REQUEST)
169
callContext.respondJson(oauthException.toMap())
0 commit comments