Skip to content

Commit

Permalink
Merge pull request #1326 from ShanChathusanda93/consent-denied-url-fi…
Browse files Browse the repository at this point in the history
…x-hybrid-branch

Fix error response is not according to the spec in user denied consent for hybrid flow
  • Loading branch information
emswbandara authored Feb 20, 2020
2 parents f89935b + 8a34d6f commit bf61808
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,8 @@ public static String getErrorRedirectURL(OAuthProblemException ex, OAuth2Paramet
try {
if (params != null) {
if (isNotBlank(params.getRedirectURI())) {
if (OAuth2Util.isImplicitResponseType(params.getResponseType())) {
if (OAuth2Util.isImplicitResponseType(params.getResponseType()) ||
OAuth2Util.isHybridResponseType(params.getResponseType())) {
if (OAuthServerConfiguration.getInstance().isImplicitErrorFragment()) {
redirectURL = OAuthASResponse.errorResponse(HttpServletResponse.SC_FOUND)
.error(ex).location(params.getRedirectURI())
Expand Down

0 comments on commit bf61808

Please sign in to comment.