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)
OpenIdClientredirectURL in interface OpenIdClientopenID - the open IDcallbackURL - the callback url.public CompletionStage<String> redirectURL(String openID, String callbackURL, Map<String,String> axRequired)
OpenIdClientredirectURL in interface OpenIdClientopenID - 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)
OpenIdClientredirectURL in interface OpenIdClientopenID - 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)
OpenIdClientredirectURL in interface OpenIdClientopenID - the open IDcallbackURL - the callback url.axRequired - the required axaxOptional - the optional axrealm - the HTTP realmpublic CompletionStage<UserInfo> verifiedId(Http.RequestHeader request)
OpenIdClientverifiedId in interface OpenIdClientrequest - the request header