Skip to content

Commit

Permalink
Make athenzConf and athenzPrincipalHeader configurable (apache#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki Shiga authored and merlimat committed Aug 9, 2017
1 parent b0ee661 commit 005aa12
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ public void configure(Map<String, String> authParams) {
this.providerDomain = authParams.get("providerDomain");
this.privateKeyPath = authParams.get("privateKeyPath");
this.keyId = authParams.getOrDefault("keyId", "0");
if (authParams.containsKey("athenzConfPath")) {
System.setProperty("athenz.athenz_conf", authParams.get("athenzConfPath"));
}
if (authParams.containsKey("principalHeader")) {
System.setProperty("athenz.auth.principal.header", authParams.get("principalHeader"));
}
}

@Override
Expand Down

0 comments on commit 005aa12

Please sign in to comment.