Skip to content

Commit

Permalink
Fix some comments 08/24
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <jiallian@amazon.com>
  • Loading branch information
RyanL1997 committed Aug 25, 2023
1 parent 4841b25 commit 7f2fc19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public String createJwt(
Integer expirySeconds,
List<String> roles,
List<String> backendRoles,
Boolean roleSecruityMode
Boolean roleSecurityMode
) throws Exception {
final long nowAsMillis = timeProvider.getAsLong();
final Instant nowAsInstant = Instant.ofEpochMilli(timeProvider.getAsLong());
Expand Down Expand Up @@ -148,7 +148,7 @@ public String createJwt(
throw new Exception("Roles cannot be null");
}

if (!roleSecruityMode && backendRoles != null) {
if (!roleSecurityMode && backendRoles != null) {
String listOfBackendRoles = String.join(",", backendRoles);
jwtClaims.setProperty("br", listOfBackendRoles);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ public String toString() {

public static class OnBehalfOf {
@JsonProperty("enabled")
private Boolean oboEnabled;
private Boolean oboEnabled = Boolean.TRUE;
@JsonProperty("signing_key")
private String signingKey;
@JsonProperty("encryption_key")
Expand All @@ -498,7 +498,7 @@ public String configAsJson() {
}

public Boolean getOboEnabled() {
return oboEnabled == null ? Boolean.TRUE : oboEnabled;
return oboEnabled;
}

public void setOboEnabled(Boolean oboEnabled) {
Expand Down

0 comments on commit 7f2fc19

Please sign in to comment.