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