Skip to content

Commit

Permalink
Revert "Using SAML subject_key and roles_key in the HTTPSamlAuthentic…
Browse files Browse the repository at this point in the history
…ator" (opensearch-project#1019)

This reverts commit a629421
  • Loading branch information
debjanibnrj authored Feb 5, 2021
1 parent 4df6677 commit ad2b42c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,12 @@ private Settings createJwtAuthenticatorSettings(Settings settings) {

settingsBuilder.put(jwtSettings);

if (jwtSettings.get("roles_key") == null) {
settingsBuilder.put("roles_key", settings.get("roles_key", "roles"));
if (jwtSettings.get("roles_key") == null && settings.get("roles_key") != null) {
settingsBuilder.put("roles_key", "roles");
}

if (jwtSettings.get("subject_key") == null) {
settingsBuilder.put("subject_key", settings.get("subject_key", "sub"));
settingsBuilder.put("subject_key", "sub");
}

return settingsBuilder.build();
Expand Down

0 comments on commit ad2b42c

Please sign in to comment.