@Component @Configuration public class Auth0Config extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
base64EncodedSecret
This is a boolean value indicating whether the Secret used to verify the JWT is base64 encoded.
|
protected String |
clientId
This is the client id of your auth0 application (see Settings page on auth0 dashboard)
|
protected String |
clientSecret
This is the client secret of your auth0 application (see Settings page on auth0 dashboard)
|
protected String |
domain
This is your auth0 domain (tenant you have created when registering with auth0 - account name)
|
protected String |
issuer
This is the issuer of the JWT Token (typically full URL of your auth0 tenant account
eg.
|
protected String |
loginCallback
This is the URL context path for the login callback endpoint.
|
protected String |
loginRedirectOnFail
This is the URL context path for the page to redirect to upon failure.
|
protected String |
loginRedirectOnSuccess
This is the landing page URL context path for a successful authentication.
|
protected String |
onLogoutRedirectTo
This is the page / view that users of your site are redirected to on logout.
|
protected String |
publicKeyPath
This is the path location to the public key stored locally on disk / inside your application War file WEB-INF directory.
|
protected String |
securedRoute
This is the URL pattern to secure a URL endpoint.
|
protected String |
signingAlgorithm
This is signing algorithm to verify signed JWT token.
|
| Constructor and Description |
|---|
Auth0Config() |
| Modifier and Type | Method and Description |
|---|---|
String |
getClientId() |
String |
getClientSecret() |
String |
getDomain() |
String |
getIssuer() |
String |
getLoginCallback() |
String |
getLoginRedirectOnFail() |
String |
getLoginRedirectOnSuccess() |
String |
getOnLogoutRedirectTo() |
String |
getPublicKeyPath() |
String |
getSecuredRoute() |
String |
getSigningAlgorithm() |
boolean |
isBase64EncodedSecret() |
@Value(value="${auth0.domain}")
protected String domain
@Value(value="${auth0.issuer}")
protected String issuer
@Value(value="${auth0.clientId}")
protected String clientId
@Value(value="${auth0.clientSecret}")
protected String clientSecret
@Value(value="${auth0.onLogoutRedirectTo}")
protected String onLogoutRedirectTo
@Value(value="${auth0.loginRedirectOnSuccess}")
protected String loginRedirectOnSuccess
@Value(value="${auth0.loginRedirectOnFail}")
protected String loginRedirectOnFail
@Value(value="${auth0.loginCallback}")
protected String loginCallback
@Value(value="${auth0.securedRoute}")
protected String securedRoute
@Value(value="${auth0.base64EncodedSecret:true}")
protected boolean base64EncodedSecret
@Value(value="${auth0.signingAlgorithm:HS256}")
protected String signingAlgorithm
@Value(value="${auth0.publicKeyPath:}")
protected String publicKeyPath
public String getDomain()
public String getIssuer()
public String getClientId()
public String getClientSecret()
public String getOnLogoutRedirectTo()
public String getLoginRedirectOnSuccess()
public String getLoginRedirectOnFail()
public String getLoginCallback()
public String getSecuredRoute()
public boolean isBase64EncodedSecret()
public String getSigningAlgorithm()
public String getPublicKeyPath()
Copyright © 2016. All Rights Reserved.