Skip to content

Commit

Permalink
Prevent UnsupportedCallbackException from counting towards validation…
Browse files Browse the repository at this point in the history
… error metrics (#177)


Signed-off-by: Marko Strukelj <[email protected]>
  • Loading branch information
mstruk authored Dec 23, 2022
1 parent 4a87646 commit 8fb40da
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,9 @@ public void handle(Callback[] callbacks) throws UnsupportedCallbackException {
delegatedHandle(callbacks);

addValidationMetricSuccessTime(requestStartTime);
} catch (UnsupportedCallbackException e) {
// we only support OAuthBearerValidatorCallback, not OAuthBearerExtensionsValidatorCallback
throw e;
} catch (Throwable t) {
addValidationMetricErrorTime(t, requestStartTime);
throw t;
Expand Down

0 comments on commit 8fb40da

Please sign in to comment.