Class Keycloak


  • @JsType(namespace="<global>",
            isNative=true)
    public class Keycloak
    extends Object
    https://www.keycloak.org/docs/latest/securing_apps/index.html#_javascript_adapter
    • Constructor Detail

      • Keycloak

        public Keycloak​(String kcConfigUrl)
    • Method Detail

      • logout

        public String logout​(String options)
        Redirects to logout.
        Parameters:
        options - Options is an Object, where: redirectUri - Specifies the uri to redirect to after logout.
      • createLogoutUrl

        public String createLogoutUrl​(String options)
        Returns the URL to logout the user.
        Parameters:
        options - Options is an Object, where: redirectUri - Specifies the uri to redirect to after logout.
      • createAccountUrl

        public String createAccountUrl()
        Returns the URL of the Account Management Console in keycloak server.
      • updateToken

        public void updateToken​(int time)