Skip to content

Commit

Permalink
Renames url parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
  • Loading branch information
DarshitChanpura committed Apr 2, 2024
1 parent 7861a76 commit 0a08132
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -437,12 +437,12 @@ public boolean authenticate(final SecurityRequestChannel request) {
* Checks if incoming auth request is from an anonymous user
* Defaults all requests to yes, to allow anonymous authentication to succeed
* @param params the query parameters passed in this request
* @return false only if an explicit `auth_request_type` param is supplied and its value is not anonymous,
* @return false only if an explicit `auth_type` param is supplied and its value is not anonymous,
* otherwise returns true
*/
private boolean isRequestForAnonymousLogin(Map<String, String> params) {
if (params.containsKey("auth_request_type")) {
return params.get("auth_request_type").equals("anonymous");
if (params.containsKey("auth_type")) {
return params.get("auth_type").equals("anonymous");
}
return true;
}
Expand Down

0 comments on commit 0a08132

Please sign in to comment.