Skip to content

Commit

Permalink
Remove OAuth2 code as this won't be used
Browse files Browse the repository at this point in the history
  • Loading branch information
jdubois committed Oct 11, 2017
1 parent ddf635c commit 04b37e8
Showing 1 changed file with 0 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -452,51 +452,12 @@ public void setClientSecret(String clientSecret) {

public static class Authentication {

private final Oauth2 oauth2 = new Oauth2();

private final Jwt jwt = new Jwt();

public Oauth2 getOauth2() {
return oauth2;
}

public Jwt getJwt() {
return jwt;
}

public static class Oauth2 {

private String issuer = "http://localhost:9080/auth/realms/jhipster";

private String principalAttribute = "preferred_username";

private String authoritiesAttribute = "roles";

public String getIssuer() {
return issuer;
}

public void setIssuer(String issuer) {
this.issuer = issuer;
}

public String getPrincipalAttribute() {
return principalAttribute;
}

public void setPrincipalAttribute(String principalAttribute) {
this.principalAttribute = principalAttribute;
}

public String getAuthoritiesAttribute() {
return authoritiesAttribute;
}

public void setAuthoritiesAttribute(String authoritiesAttribute) {
this.authoritiesAttribute = authoritiesAttribute;
}
}

public static class Jwt {

private String secret;
Expand Down

0 comments on commit 04b37e8

Please sign in to comment.