public class OpenIDAuthenticationManagerGeneric extends Object implements OpenIDAuthenticationManager
Constructor and Description |
---|
OpenIDAuthenticationManagerGeneric() |
Modifier and Type | Method and Description |
---|---|
OpenIDAuthResponse |
allowRequest(User user,
long profileID,
OpenIDAuthRequest authReq,
boolean alwaysAllow)
Process a request if the "allow" or "allow always" action
is taken by the user when a site has requested authentication.
|
OpenIDAuthResponse |
autoAllowRequest(User user,
OpenIDAuthRequest authReq)
Processes a request if the "allow_always" flag has been set
for the requesting site.
|
OpenIDAuthResponse |
checkImmediate(SOAPPrincipal principal,
Locale locale,
OpenIDAuthRequest authReq)
A convenience wrapper for the autoAllowRequest method.
|
protected void |
createAuthRecord(User user,
Site site,
AuthAction authAction)
Creates an AuthRecord for the user/site/action combination.
|
OpenIDAuthResponse |
denyRequest(User user,
OpenIDAuthRequest authReq)
Process a request if the "deny" action is taken by the user
when a site has requested authentication.
|
static String |
effectiveIdentifier(OpenIDAuthRequest authReq,
User user)
Select an identifier for this request, using the currently logged-in user if identifier
selection is requested.
|
AuthRecordDAO |
getAuthRecordDAO() |
OpenIDPropertyManager |
getOpenIDPropertyManager() |
SiteManager |
getSiteManager() |
UserManager |
getUserManager() |
void |
setAuthRecordDAO(AuthRecordDAO authRecordDAO) |
void |
setOpenIDPropertyManager(OpenIDPropertyManager openIDPropertyManager) |
void |
setSiteManager(SiteManager siteManager) |
void |
setUserManager(UserManager userManager) |
void |
validateRequest(User user,
OpenIDAuthRequest authReq)
Validates the OpenID authentication request.
|
public void validateRequest(User user, OpenIDAuthRequest authReq) throws InvalidRequestException, SiteDisallowedException, IdentifierViolationException
validateRequest
in interface OpenIDAuthenticationManager
user
- logged in user.authReq
- OpenID authentication request.InvalidRequestException
- if authReq is null or the return_to URL is invalid/malformed.SiteDisallowedException
- if the site is disallowed by whitelist/blacklist or the site is localhost and local return_to URLs have been disallowed.IdentifierViolationException
- if the principal does not own the OpenID identifier.public OpenIDAuthResponse checkImmediate(SOAPPrincipal principal, Locale locale, OpenIDAuthRequest authReq)
checkImmediate
in interface OpenIDAuthenticationManager
principal
- principal corresponding to logged in user.locale
- locale of the logged in user.authReq
- authentication request of the user.public OpenIDAuthResponse autoAllowRequest(User user, OpenIDAuthRequest authReq)
autoAllowRequest
in interface OpenIDAuthenticationManager
user
- user processing request.authReq
- OpenIDAuthRequest being processed.public OpenIDAuthResponse denyRequest(User user, OpenIDAuthRequest authReq)
denyRequest
in interface OpenIDAuthenticationManager
user
- user processing request.authReq
- OpenIDAuthRequest being processed.public OpenIDAuthResponse allowRequest(User user, long profileID, OpenIDAuthRequest authReq, boolean alwaysAllow)
allowRequest
in interface OpenIDAuthenticationManager
user
- user processing request.profileID
- ID of profile containing attributes to be used in response.authReq
- OpenIDAuthRequest being processed.alwaysAllow
- true if the user wants to trust the site.public static String effectiveIdentifier(OpenIDAuthRequest authReq, User user)
IllegalArgumentException
- if identifier selection is requested but user
is null
protected void createAuthRecord(User user, Site site, AuthAction authAction)
user
- user.site
- site.authAction
- AuthAction type.public SiteManager getSiteManager()
public void setSiteManager(SiteManager siteManager)
public OpenIDPropertyManager getOpenIDPropertyManager()
public void setOpenIDPropertyManager(OpenIDPropertyManager openIDPropertyManager)
public AuthRecordDAO getAuthRecordDAO()
public void setAuthRecordDAO(AuthRecordDAO authRecordDAO)
public UserManager getUserManager()
public void setUserManager(UserManager userManager)
Copyright © 2013 Atlassian. All Rights Reserved.