Class OAuth2AuthHandler

    • Constructor Detail

      • OAuth2AuthHandler

        public OAuth2AuthHandler​(io.vertx.ext.web.handler.OAuth2AuthHandler delegate)
      • OAuth2AuthHandler

        public OAuth2AuthHandler​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • create

        public static OAuth2AuthHandler create​(Vertx vertx,
                                               OAuth2Auth authProvider,
                                               String callbackURL)
        Parameters:
        vertx - the vertx instance
        authProvider - the auth provider to use
        callbackURL - the callback URL you entered in your provider admin console, usually it should be something like: `https://myserver:8888/callback`
        Returns:
        the auth handler
      • create

        public static OAuth2AuthHandler create​(Vertx vertx,
                                               OAuth2Auth authProvider)
        Parameters:
        vertx - the vertx instance
        authProvider - the auth provider to use
        Returns:
        the auth handler
      • extraParams

        public OAuth2AuthHandler extraParams​(io.vertx.core.json.JsonObject extraParams)
        Parameters:
        extraParams - extra optional parameters.
        Returns:
        self
      • withScope

        public OAuth2AuthHandler withScope​(String scope)
        Parameters:
        scope - scope.
        Returns:
        new instance of this interface.
      • withScopes

        public OAuth2AuthHandler withScopes​(List<String> scopes)
        Parameters:
        scopes - scopes.
        Returns:
        new instance of this interface.
      • prompt

        public OAuth2AuthHandler prompt​(String prompt)
        Parameters:
        prompt - the prompt choice.
        Returns:
        self
      • pkceVerifierLength

        public OAuth2AuthHandler pkceVerifierLength​(int length)
        Parameters:
        length - A number between 43 and 128. Or -1 to disable.
        Returns:
        self
      • setupCallback

        public OAuth2AuthHandler setupCallback​(Route route)
        Parameters:
        route - a given route e.g.: `/callback`
        Returns:
        self
      • newInstance

        public static OAuth2AuthHandler newInstance​(io.vertx.ext.web.handler.OAuth2AuthHandler arg)