Class WarlockJustAuthProp
-
- All Implemented Interfaces:
@ConfigurationProperties(value = WarlockJustAuthProp.Key) public class WarlockJustAuthProp
Oauth login support, use just-auth. wings-warlock-justauth-77.properties
- Since:
2021-02-17
trydofor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classWarlockJustAuthProp.Http
-
Field Summary
Fields Modifier and Type Field Description public final static StringKeypublic intcacheSizepublic final static StringKey$cacheSizepublic intcacheLivepublic final static StringKey$cacheLivepublic Map<String, String>safeStatepublic final static StringKey$safeStatepublic Set<String>safeHostpublic final static StringKey$safeHostpublic Map<String, AuthConfig>authTypepublic final static StringKey$authTypepublic Map<String, WarlockJustAuthProp.Http>httpConfpublic final static StringKey$httpConf
-
Constructor Summary
Constructors Constructor Description WarlockJustAuthProp()
-
Method Summary
Modifier and Type Method Description intgetCacheSize()cache capacity voidsetCacheSize(int cacheSize)cache capacity intgetCacheLive()ttl seconds, expireAfterWrite voidsetCacheLive(int cacheLive)ttl seconds, expireAfterWrite Map<String, String>getSafeState()default `/login`=`{1}/#{0}{2}` Set secure state, get content by key, perform redirects (starting with `http` or `/`) or write-back. voidsetSafeState(Map<String, String> safeState)default `/login`=`{1}/#{0}{2}` Set secure state, get content by key, perform redirects (starting with `http` or `/`) or write-back. Set<String>getSafeHost()Set secure host, reduce cross-domain when dev, can raise `redirect_uri_mismatch` error. voidsetSafeHost(Set<String> safeHost)Set secure host, reduce cross-domain when dev, can raise `redirect_uri_mismatch` error. Map<String, AuthConfig>getAuthType()key use `wings.warlock.security.auth-type.*`, support `{host}`,`{scheme}`,`{authType}`,`{authZone}` variables, according to request. voidsetAuthType(Map<String, AuthConfig> authType)key use `wings.warlock.security.auth-type.*`, support `{host}`,`{scheme}`,`{authType}`,`{authZone}` variables, according to request. Map<String, WarlockJustAuthProp.Http>getHttpConf()if you don't need a proxy, just set proxy-type=DIRECT or host=null. voidsetHttpConf(Map<String, WarlockJustAuthProp.Http> httpConf)if you don't need a proxy, just set proxy-type=DIRECT or host=null. booleanequals(@Nullable() Object o)inthashCode()StringtoString()-
-
Method Detail
-
getCacheSize
int getCacheSize()
cache capacity
-
setCacheSize
void setCacheSize(int cacheSize)
cache capacity
-
getCacheLive
int getCacheLive()
ttl seconds, expireAfterWrite
-
setCacheLive
void setCacheLive(int cacheLive)
ttl seconds, expireAfterWrite
-
getSafeState
Map<String, String> getSafeState()
default `/login`=`{1}/#{0}{2}`
Set secure state, get content by key, perform redirects (starting with `http` or `/`) or write-back. The content supports a placeholder template in `MessageFormat` format, with `{0}` as the key. If it starts with `http`, then it detects if it is safe-host.
-
setSafeState
void setSafeState(Map<String, String> safeState)
default `/login`=`{1}/#{0}{2}`
Set secure state, get content by key, perform redirects (starting with `http` or `/`) or write-back. The content supports a placeholder template in `MessageFormat` format, with `{0}` as the key. If it starts with `http`, then it detects if it is safe-host.
-
getSafeHost
Set<String> getSafeHost()
Set secure host, reduce cross-domain when dev, can raise `redirect_uri_mismatch` error.
-
setSafeHost
void setSafeHost(Set<String> safeHost)
Set secure host, reduce cross-domain when dev, can raise `redirect_uri_mismatch` error.
-
getAuthType
Map<String, AuthConfig> getAuthType()
key use `wings.warlock.security.auth-type.*`, support `{host}`,`{scheme}`,`{authType}`,`{authZone}` variables, according to request.
-
setAuthType
void setAuthType(Map<String, AuthConfig> authType)
key use `wings.warlock.security.auth-type.*`, support `{host}`,`{scheme}`,`{authType}`,`{authZone}` variables, according to request.
-
getHttpConf
Map<String, WarlockJustAuthProp.Http> getHttpConf()
if you don't need a proxy, just set proxy-type=DIRECT or host=null.
-
setHttpConf
void setHttpConf(Map<String, WarlockJustAuthProp.Http> httpConf)
if you don't need a proxy, just set proxy-type=DIRECT or host=null.
-
hashCode
int hashCode()
-
-
-
-