Package play.libs.openid
Class DefaultOpenIdClient
java.lang.Object
play.libs.openid.DefaultOpenIdClient
- All Implemented Interfaces:
OpenIdClient
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultOpenIdClient(play.api.libs.openid.OpenIdClient client, scala.concurrent.ExecutionContext executionContext) -
Method Summary
Modifier and TypeMethodDescriptionredirectURL(String openID, String callbackURL) Retrieve the URL where the user should be redirected to start the OpenID authentication process.Retrieve the URL where the user should be redirected to start the OpenID authentication processredirectURL(String openID, String callbackURL, Map<String, String> axRequired, Map<String, String> axOptional) Retrieve the URL where the user should be redirected to start the OpenID authentication process.redirectURL(String openID, String callbackURL, Map<String, String> axRequired, Map<String, String> axOptional, String realm) Retrieve the URL where the user should be redirected to start the OpenID authentication process.verifiedId(Http.RequestHeader request) Check the identity of the user from the current request, that should be the callback from the OpenID server
-
Constructor Details
-
DefaultOpenIdClient
@Inject public DefaultOpenIdClient(play.api.libs.openid.OpenIdClient client, scala.concurrent.ExecutionContext executionContext)
-
-
Method Details
-
redirectURL
Description copied from interface:OpenIdClientRetrieve the URL where the user should be redirected to start the OpenID authentication process.- Specified by:
redirectURLin interfaceOpenIdClient- Parameters:
openID- the open IDcallbackURL- 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:OpenIdClientRetrieve the URL where the user should be redirected to start the OpenID authentication process- Specified by:
redirectURLin interfaceOpenIdClient- Parameters:
openID- the open IDcallbackURL- 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:OpenIdClientRetrieve the URL where the user should be redirected to start the OpenID authentication process.- Specified by:
redirectURLin interfaceOpenIdClient- Parameters:
openID- the open IDcallbackURL- the callback url.axRequired- the required axaxOptional- 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:OpenIdClientRetrieve the URL where the user should be redirected to start the OpenID authentication process.- Specified by:
redirectURLin interfaceOpenIdClient- Parameters:
openID- the open IDcallbackURL- the callback url.axRequired- the required axaxOptional- the optional axrealm- the HTTP realm- Returns:
- A completion stage of the URL as a string.
-
verifiedId
Description copied from interface:OpenIdClientCheck the identity of the user from the current request, that should be the callback from the OpenID server- Specified by:
verifiedIdin interfaceOpenIdClient- Parameters:
request- the request header- Returns:
- A completion stage of the user's identity.
-