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

    Author:

    trydofor

    • Constructor Detail

      • WarlockJustAuthProp

        WarlockJustAuthProp()
    • Method Detail

      • 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.