public class OpenIDConnectProvider extends Object implements LoginProviderLinkComputer
Constructor and Description |
---|
OpenIDConnectProvider(NuxeoOAuth2ServiceProvider oauth2Provider,
String userInfoURL,
String icon,
boolean enabled) |
Modifier and Type | Method and Description |
---|---|
String |
computeUrl(HttpServletRequest req,
String requestedUrl)
Compute Url that should be used to login via this login provider.
|
String |
getAccessToken(HttpServletRequest req,
String code) |
String |
getAuthenticationUrl(HttpServletRequest req,
String requestedUrl) |
String |
getIcon() |
String |
getName() |
String |
getRedirectUri(HttpServletRequest req) |
OpenIdUserInfo |
getUserInfo(String accessToken) |
boolean |
isEnabled() |
public OpenIDConnectProvider(NuxeoOAuth2ServiceProvider oauth2Provider, String userInfoURL, String icon, boolean enabled)
public String getRedirectUri(HttpServletRequest req)
public String getAuthenticationUrl(HttpServletRequest req, String requestedUrl)
public String getName()
public String getIcon()
public String getAccessToken(HttpServletRequest req, String code)
public OpenIdUserInfo getUserInfo(String accessToken)
public boolean isEnabled()
public String computeUrl(HttpServletRequest req, String requestedUrl)
LoginProviderLinkComputer
computeUrl
in interface LoginProviderLinkComputer
Copyright © 2013 Nuxeo SA. All Rights Reserved.