Skip to content

Instantly share code, notes, and snippets.

@vdelacou
Created June 7, 2018 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vdelacou/aafc8ca504b49ec0f1f33c605cffc731 to your computer and use it in GitHub Desktop.
Save vdelacou/aafc8ca504b49ec0f1f33c605cffc731 to your computer and use it in GitHub Desktop.
Add Auth0 Properties to JHipster spring boot application
package com.seelix.api.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* Properties specific to Seelix.
* <p>
* Properties are configured in the application.yml file.
* See {@link io.github.jhipster.config.JHipsterProperties} for a good example.
*/
@ConfigurationProperties(prefix = "application", ignoreUnknownFields = false)
public class ApplicationProperties {
private final Security security = new Security();
public Security getSecurity() {
return security;
}
public static class Security {
private final Authentication authentication = new Authentication();
public Authentication getAuthentication() {
return authentication;
}
public static class Authentication {
private final Auth0 auth0 = new Auth0();
public Auth0 getAuth0() {
return auth0;
}
public static class Auth0 {
private String audience;
private String issuer;
public String getAudience() {
return audience;
}
public void setAudience(String audience) {
this.audience = audience;
}
public String getIssuer() {
return issuer;
}
public void setIssuer(String issuer) {
this.issuer = issuer;
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment