Skip to content

Commit

Permalink
Add a SuppressWarnings annotation for LGTM as it doesn't detect that …
Browse files Browse the repository at this point in the history
…we fixed this.
  • Loading branch information
tdonohue committed Jul 31, 2020
1 parent 4410435 commit cf2f50d
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -49,6 +49,9 @@ public void afterPropertiesSet() {
.register(this, Arrays.asList(new Link("/api/" + AuthnRest.CATEGORY, "shibboleth")));
}

// LGTM.com thinks this method has an unvalidated URL redirect (https://lgtm.com/rules/4840088/) in `redirectUrl`,
// even though we are clearly validating the hostname of `redirectUrl` and test it in ShibbolethRestControllerIT
@SuppressWarnings("lgtm[java/unvalidated-url-redirection]")
@RequestMapping(method = RequestMethod.GET)
public void shibboleth(HttpServletResponse response,
@RequestParam(name = "redirectUrl", required = false) String redirectUrl) throws IOException {
Expand Down

0 comments on commit cf2f50d

Please sign in to comment.