@Validated @ConfigurationProperties(value="broadleaf.auth.security") public class AuthorizationServerProperties extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AuthorizationServerProperties.ContentSecurityPolicyProperties
Properties configuring the behavior of
ContentSecurityPolicyConfigurer . |
static class |
AuthorizationServerProperties.OAuth2 |
Constructor and Description |
---|
AuthorizationServerProperties() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
AuthorizationServerProperties.ContentSecurityPolicyProperties |
getContentSecurityPolicy()
Properties pertaining to Content Security Policy (CSP) configuration.
|
Set<String> |
getGlobalDomainWhitelist()
If a tenant enabled installation is in place (i.e.
|
Set<String> |
getGlobalPrefixWhitelist()
If a tenant enabled installation is in place (i.e.
|
String |
getLoginPathOrUrl()
Either the path portion only to the login page (e.g.
|
AuthorizationServerProperties.OAuth2 |
getOauth2() |
String[] |
getPrefixedDomainWhitelist()
If a tenant enabled installation is in place (i.e.
|
int |
hashCode() |
boolean |
isUseRedirectUriHost()
Deprecated.
|
void |
setContentSecurityPolicy(AuthorizationServerProperties.ContentSecurityPolicyProperties contentSecurityPolicy)
Properties pertaining to Content Security Policy (CSP) configuration.
|
void |
setGlobalDomainWhitelist(Set<String> globalDomainWhitelist)
If a tenant enabled installation is in place (i.e.
|
void |
setGlobalPrefixWhitelist(Set<String> globalPrefixWhitelist)
If a tenant enabled installation is in place (i.e.
|
void |
setLoginPathOrUrl(String loginPathOrUrl)
Either the path portion only to the login page (e.g.
|
void |
setOauth2(AuthorizationServerProperties.OAuth2 oauth2) |
void |
setPrefixedDomainWhitelist(String[] prefixedDomainWhitelist)
If a tenant enabled installation is in place (i.e.
|
void |
setUseRedirectUriHost(boolean useRedirectUriHost)
Deprecated.
|
String |
toString() |
public AuthorizationServerProperties.OAuth2 getOauth2()
@Deprecated public boolean isUseRedirectUriHost()
Note, when false, it may be necessary to configure a ForwardedHeaderFilter
in Spring
Security configuration to accommodate any gateway or docker request manipulation occurring
before the request reaches this authentication provider. For example, in the reference
implementation, the auth server is routed through the gateway server. The gateway server does
set X-FORWARDED-*
headers that the ForwardedHeaderFilter will catch and use to setup
the incoming request correctly so that saved requests end up routing to the appropriate
location when needed. In the same vein, if you have this auth server situated behind a load
balancer that supports X-FORWARDED-*
headers, you can make sure the original host is
honored here. It is for this reason that the default sample implementation of the auth server
configures the ForwardedHeaderFilter, since the assumption is that it's receiving requests
through a Spring Cloud Gateway instance that is also part of our reference implementation
ecosystem.
public String[] getPrefixedDomainWhitelist()
broadleaf.auth.data.tenant.sync.active = true
), this list serves to declare the
possible domain names that can be used in conjunction with subdomains registered for
applications via the Application.getIdentifierType()
of
ResolutionIdentifierType.DOMAIN_PREFIX
.public String getLoginPathOrUrl()
public Set<String> getGlobalDomainWhitelist()
broadleaf.auth.data.tenant.sync.active = true
), this list serves to declare the
possible domain names (e.g., all of global.myCompany.com
) that can be used to
validate a requested redirect uri that represents a global admin login.public Set<String> getGlobalPrefixWhitelist()
broadleaf.auth.data.tenant.sync.active = true
), this list serves to declare the
possible domain name prefixes (e.g., global
in global.myCompany.com
) that can
be used to validate a requested redirect uri that represents a global admin login.public AuthorizationServerProperties.ContentSecurityPolicyProperties getContentSecurityPolicy()
public void setOauth2(AuthorizationServerProperties.OAuth2 oauth2)
@Deprecated public void setUseRedirectUriHost(boolean useRedirectUriHost)
Note, when false, it may be necessary to configure a ForwardedHeaderFilter
in Spring
Security configuration to accommodate any gateway or docker request manipulation occurring
before the request reaches this authentication provider. For example, in the reference
implementation, the auth server is routed through the gateway server. The gateway server does
set X-FORWARDED-*
headers that the ForwardedHeaderFilter will catch and use to setup
the incoming request correctly so that saved requests end up routing to the appropriate
location when needed. In the same vein, if you have this auth server situated behind a load
balancer that supports X-FORWARDED-*
headers, you can make sure the original host is
honored here. It is for this reason that the default sample implementation of the auth server
configures the ForwardedHeaderFilter, since the assumption is that it's receiving requests
through a Spring Cloud Gateway instance that is also part of our reference implementation
ecosystem.
public void setPrefixedDomainWhitelist(String[] prefixedDomainWhitelist)
broadleaf.auth.data.tenant.sync.active = true
), this list serves to declare the
possible domain names that can be used in conjunction with subdomains registered for
applications via the Application.getIdentifierType()
of
ResolutionIdentifierType.DOMAIN_PREFIX
.public void setLoginPathOrUrl(String loginPathOrUrl)
public void setGlobalDomainWhitelist(Set<String> globalDomainWhitelist)
broadleaf.auth.data.tenant.sync.active = true
), this list serves to declare the
possible domain names (e.g., all of global.myCompany.com
) that can be used to
validate a requested redirect uri that represents a global admin login.public void setGlobalPrefixWhitelist(Set<String> globalPrefixWhitelist)
broadleaf.auth.data.tenant.sync.active = true
), this list serves to declare the
possible domain name prefixes (e.g., global
in global.myCompany.com
) that can
be used to validate a requested redirect uri that represents a global admin login.public void setContentSecurityPolicy(AuthorizationServerProperties.ContentSecurityPolicyProperties contentSecurityPolicy)
protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.