public class DefaultOpenIdClient extends java.lang.Object implements OpenIdClient
Constructor and Description |
---|
DefaultOpenIdClient(play.api.libs.openid.OpenIdClient client,
scala.concurrent.ExecutionContext executionContext) |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletionStage<java.lang.String> |
redirectURL(java.lang.String openID,
java.lang.String callbackURL)
Retrieve the URL where the user should be redirected to start the OpenID authentication
process.
|
java.util.concurrent.CompletionStage<java.lang.String> |
redirectURL(java.lang.String openID,
java.lang.String callbackURL,
java.util.Map<java.lang.String,java.lang.String> axRequired)
Retrieve the URL where the user should be redirected to start the OpenID authentication process
|
java.util.concurrent.CompletionStage<java.lang.String> |
redirectURL(java.lang.String openID,
java.lang.String callbackURL,
java.util.Map<java.lang.String,java.lang.String> axRequired,
java.util.Map<java.lang.String,java.lang.String> axOptional)
Retrieve the URL where the user should be redirected to start the OpenID authentication
process.
|
java.util.concurrent.CompletionStage<java.lang.String> |
redirectURL(java.lang.String openID,
java.lang.String callbackURL,
java.util.Map<java.lang.String,java.lang.String> axRequired,
java.util.Map<java.lang.String,java.lang.String> axOptional,
java.lang.String realm)
Retrieve the URL where the user should be redirected to start the OpenID authentication
process.
|
java.util.concurrent.CompletionStage<UserInfo> |
verifiedId()
Deprecated.
|
java.util.concurrent.CompletionStage<UserInfo> |
verifiedId(Http.RequestHeader request)
Check the identity of the user from the current request, that should be the callback from the
OpenID server
|
@Inject public DefaultOpenIdClient(play.api.libs.openid.OpenIdClient client, scala.concurrent.ExecutionContext executionContext)
public java.util.concurrent.CompletionStage<java.lang.String> redirectURL(java.lang.String openID, java.lang.String callbackURL)
OpenIdClient
redirectURL
in interface OpenIdClient
openID
- the open IDcallbackURL
- the callback url.public java.util.concurrent.CompletionStage<java.lang.String> redirectURL(java.lang.String openID, java.lang.String callbackURL, java.util.Map<java.lang.String,java.lang.String> axRequired)
OpenIdClient
redirectURL
in interface OpenIdClient
openID
- the open IDcallbackURL
- the callback url.axRequired
- the required axpublic java.util.concurrent.CompletionStage<java.lang.String> redirectURL(java.lang.String openID, java.lang.String callbackURL, java.util.Map<java.lang.String,java.lang.String> axRequired, java.util.Map<java.lang.String,java.lang.String> axOptional)
OpenIdClient
redirectURL
in interface OpenIdClient
openID
- the open IDcallbackURL
- the callback url.axRequired
- the required axaxOptional
- the optional axpublic java.util.concurrent.CompletionStage<java.lang.String> redirectURL(java.lang.String openID, java.lang.String callbackURL, java.util.Map<java.lang.String,java.lang.String> axRequired, java.util.Map<java.lang.String,java.lang.String> axOptional, java.lang.String realm)
OpenIdClient
redirectURL
in interface OpenIdClient
openID
- the open IDcallbackURL
- the callback url.axRequired
- the required axaxOptional
- the optional axrealm
- the HTTP realmpublic java.util.concurrent.CompletionStage<UserInfo> verifiedId(Http.RequestHeader request)
OpenIdClient
verifiedId
in interface OpenIdClient
request
- the request header@Deprecated public java.util.concurrent.CompletionStage<UserInfo> verifiedId()
OpenIdClient
verifiedId
in interface OpenIdClient