Skip to content

Commit

Permalink
RestHandler.cfc should catch NotAuthorized exception (#587)
Browse files Browse the repository at this point in the history
currently it handles only InvalidCredentials and TokenInvalidException
  • Loading branch information
GunnarLieb authored Oct 25, 2023
1 parent a67d3ac commit 00a449c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions system/RestHandler.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ component extends="EventHandler" {
arguments.exception = e;
this.onAuthenticationFailure( argumentCollection = arguments );
}
// Auth Issues
catch ( "NotAuthorized" e ) {
arguments.exception = e;
this.onAuthenticationFailure( argumentCollection = arguments );
}
// Token Decoding Issues
catch ( "TokenInvalidException" e ) {
arguments.exception = e;
Expand Down

0 comments on commit 00a449c

Please sign in to comment.