Class DefaultOpenIdClient

    • Constructor Detail

      • DefaultOpenIdClient

        @Inject
        public DefaultOpenIdClient​(play.api.libs.openid.OpenIdClient client,
                                   scala.concurrent.ExecutionContext executionContext)
    • Method Detail

      • redirectURL

        public CompletionStage<String> redirectURL​(String openID,
                                                   String callbackURL)
        Description copied from interface: OpenIdClient
        Retrieve the URL where the user should be redirected to start the OpenID authentication process.
        Specified by:
        redirectURL in interface OpenIdClient
        Parameters:
        openID - the open ID
        callbackURL - the callback url.
        Returns:
        A completion stage of the URL as a string.
      • redirectURL

        public CompletionStage<String> redirectURL​(String openID,
                                                   String callbackURL,
                                                   Map<String,​String> axRequired)
        Description copied from interface: OpenIdClient
        Retrieve the URL where the user should be redirected to start the OpenID authentication process
        Specified by:
        redirectURL in interface OpenIdClient
        Parameters:
        openID - the open ID
        callbackURL - the callback url.
        axRequired - the required ax
        Returns:
        A completion stage of the URL as a string.
      • redirectURL

        public CompletionStage<String> redirectURL​(String openID,
                                                   String callbackURL,
                                                   Map<String,​String> axRequired,
                                                   Map<String,​String> axOptional)
        Description copied from interface: OpenIdClient
        Retrieve the URL where the user should be redirected to start the OpenID authentication process.
        Specified by:
        redirectURL in interface OpenIdClient
        Parameters:
        openID - the open ID
        callbackURL - the callback url.
        axRequired - the required ax
        axOptional - the optional ax
        Returns:
        A completion stage of the URL as a string.
      • redirectURL

        public CompletionStage<String> redirectURL​(String openID,
                                                   String callbackURL,
                                                   Map<String,​String> axRequired,
                                                   Map<String,​String> axOptional,
                                                   String realm)
        Description copied from interface: OpenIdClient
        Retrieve the URL where the user should be redirected to start the OpenID authentication process.
        Specified by:
        redirectURL in interface OpenIdClient
        Parameters:
        openID - the open ID
        callbackURL - the callback url.
        axRequired - the required ax
        axOptional - the optional ax
        realm - the HTTP realm
        Returns:
        A completion stage of the URL as a string.
      • verifiedId

        public CompletionStage<UserInfo> verifiedId​(Http.RequestHeader request)
        Description copied from interface: OpenIdClient
        Check the identity of the user from the current request, that should be the callback from the OpenID server
        Specified by:
        verifiedId in interface OpenIdClient
        Parameters:
        request - the request header
        Returns:
        A completion stage of the user's identity.