public class OAuthAuthentication
extends fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication
| Constructor and Description |
|---|
OAuthAuthentication() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessTokenEndpointUrl()
The access token url
|
fr.paris.lutece.portal.service.security.LuteceUser |
getAnonymousUser() |
String |
getAuthorizeWebsiteUrl()
Gets The authorize/authenticate url
|
String |
getAuthServiceName() |
String |
getAuthType(javax.servlet.http.HttpServletRequest request) |
String |
getConsumerKey()
Returns the consumer key
|
String |
getConsumerSecret()
Returns the consumer secret
|
String |
getCredentialFormat()
Gets the credentials format
|
String |
getCredentialUrl()
credential url
|
String |
getIconUrl() |
String |
getName() |
String |
getPluginName() |
String |
getRequestTokenEndpointUrl()
The request token url
|
OAuthUser |
getUser(javax.servlet.http.HttpServletRequest request)
Gets the user
|
boolean |
isDelegatedAuthentication() |
boolean |
isUserInRole(fr.paris.lutece.portal.service.security.LuteceUser user,
javax.servlet.http.HttpServletRequest request,
String strRole) |
fr.paris.lutece.portal.service.security.LuteceUser |
login(String strUserName,
String strUserPassword,
javax.servlet.http.HttpServletRequest request) |
void |
logout(fr.paris.lutece.portal.service.security.LuteceUser user) |
void |
setAccessTokenEndpointUrl(String strAccessTokenEndpointUrl)
Access token url
|
void |
setAuthorizeWebsiteUrl(String strAuthorizeWebsiteUrl)
The authorize/authenticate url
|
void |
setAuthServiceName(String strAuthServiceName)
Sets the auth service name
|
void |
setConsumerKey(String strConsumerKey)
Sets the consumer key
|
void |
setConsumerSecret(String strConsumerSecret)
Consumer secret
|
void |
setCredentialFormat(String strCredentialFormat)
Credentials format
|
void |
setCredentialUrl(String strCredentialUrl)
Set the credential url
|
void |
setIconUrl(String strIconUrl)
Sets the icon url
|
void |
setName(String strName)
Set the name
|
void |
setRequestTokenEndpointUrl(String strRequestTokenEndpointUrl)
The request token url
|
String |
toString() |
findResetPassword, getAccessControledTemplate, getAccessDeniedTemplate, getDoLoginUrl, getDoLogoutUrl, getHttpAuthenticatedUser, getLoginPageUrl, getLostLoginPageUrl, getLostPasswordPageUrl, getNewAccountPageUrl, getResetPasswordPageUrl, getRolesByUser, getUser, getUsers, getViewAccountPageUrl, isExternalAuthentication, isMultiAuthenticationSupported, isUsersListAvailable, updateDateLastLoginpublic fr.paris.lutece.portal.service.security.LuteceUser getAnonymousUser()
public String getAuthServiceName()
public String getAuthType(javax.servlet.http.HttpServletRequest request)
public String getIconUrl()
getIconUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationgetIconUrl in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthenticationpublic String getName()
public String getPluginName()
public boolean isUserInRole(fr.paris.lutece.portal.service.security.LuteceUser user,
javax.servlet.http.HttpServletRequest request,
String strRole)
public boolean isDelegatedAuthentication()
isDelegatedAuthentication in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationisDelegatedAuthentication in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthenticationpublic fr.paris.lutece.portal.service.security.LuteceUser login(String strUserName, String strUserPassword, javax.servlet.http.HttpServletRequest request) throws LoginException, fr.paris.lutece.portal.service.security.LoginRedirectException
LoginExceptionfr.paris.lutece.portal.service.security.LoginRedirectExceptionpublic OAuthUser getUser(javax.servlet.http.HttpServletRequest request)
request - the reuqestpublic void logout(fr.paris.lutece.portal.service.security.LuteceUser user)
public void setAuthServiceName(String strAuthServiceName)
strAuthServiceName - the service namepublic void setName(String strName)
strName - the service keypublic void setIconUrl(String strIconUrl)
strIconUrl - icon urlpublic String getRequestTokenEndpointUrl()
public void setRequestTokenEndpointUrl(String strRequestTokenEndpointUrl)
strRequestTokenEndpointUrl - the request token urlpublic String getAccessTokenEndpointUrl()
public void setAccessTokenEndpointUrl(String strAccessTokenEndpointUrl)
strAccessTokenEndpointUrl - the access token urlpublic String getAuthorizeWebsiteUrl()
public void setAuthorizeWebsiteUrl(String strAuthorizeWebsiteUrl)
strAuthorizeWebsiteUrl - the authorize urlpublic String getConsumerKey()
public void setConsumerKey(String strConsumerKey)
strConsumerKey - the consumer keypublic String getConsumerSecret()
public void setConsumerSecret(String strConsumerSecret)
strConsumerSecret - consumer secretpublic String toString()
toString in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthenticationpublic String getCredentialUrl()
public void setCredentialUrl(String strCredentialUrl)
strCredentialUrl - credential urlpublic String getCredentialFormat()
public void setCredentialFormat(String strCredentialFormat)
strCredentialFormat - strCredentialFormatCopyright © 2015 City of Paris. All rights reserved.