Created
June 7, 2018 06:12
-
-
Save vdelacou/aafc8ca504b49ec0f1f33c605cffc731 to your computer and use it in GitHub Desktop.
Add Auth0 Properties to JHipster spring boot application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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