@Test(expected = InvalidRequestException.class) public void testResolveRedirect_blacklisted() { resolver.resolveRedirect(blacklistedUri, client); }
@Override public String resolveRedirect(String requestedRedirect, ClientDetails client) throws OAuth2Exception { String redirect = super.resolveRedirect(requestedRedirect, client); if (blacklistService.isBlacklisted(redirect)) { throw new InvalidRequestException("The supplied redirect_uri is not allowed on this server."); } else { return redirect; } }
BlacklistAwareRedirectResolver extends DefaultRedirectResolver { @Override public String resolveRedirect(String requestedRedirect, ClientDetails client) throws OAuth2Exception { String redirect = super.resolveRedirect(requestedRedirect, client); if (blacklistService.isBlacklisted(redirect)) { throw new InvalidRequestException("The supplied redirect_uri is not allowed on this server."); } else { return redirect; } } }
BlacklistAwareRedirectResolver extends DefaultRedirectResolver { @Override public String resolveRedirect(String requestedRedirect, ClientDetails client) throws OAuth2Exception { String redirect = super.resolveRedirect(requestedRedirect, client); if (blacklistService.isBlacklisted(redirect)) { throw new InvalidRequestException("The supplied redirect_uri is not allowed on this server."); } else { return redirect; } }  }
BlacklistAwareRedirectResolver extends DefaultRedirectResolver { @Override public String resolveRedirect(String requestedRedirect, ClientDetails client) throws OAuth2Exception { String redirect = super.resolveRedirect(requestedRedirect, client); if (blacklistService.isBlacklisted(redirect)) { throw new InvalidRequestException("The supplied redirect_uri is not allowed on this server."); } else { return redirect; } }  @Override String resolveRedirect(String requestedRedirect, ClientDetails client); boolean isStrictMatch(); void setStrictMatch(boolean strictMatch); }
BlacklistAwareRedirectResolver extends DefaultRedirectResolver { @Override public String resolveRedirect(String requestedRedirect, ClientDetails client) throws OAuth2Exception { String redirect = super.resolveRedirect(requestedRedirect, client); if (blacklistService.isBlacklisted(redirect)) { throw new InvalidRequestException("The supplied redirect_uri is not allowed on this server."); } else { return redirect; } }  @Override String resolveRedirect(String requestedRedirect, ClientDetails client); boolean isStrictMatch(); void setStrictMatch(boolean strictMatch);  }