public interface OpenIDAuthenticationManager
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(User principal,
Locale locale,
OpenIDAuthRequest authReq)
A convenience wrapper for the autoAllowRequest method.
|
OpenIDAuthResponse |
denyRequest(User user,
OpenIDAuthRequest authReq)
Process a request if the "deny" action is taken by the user
when a site has requested authentication.
|
void |
validateRequest(User user,
OpenIDAuthRequest authReq)
Validates the OpenID authentication request.
|
void validateRequest(User user, OpenIDAuthRequest authReq) throws InvalidRequestException, SiteDisallowedException, IdentifierViolationException
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.OpenIDAuthResponse autoAllowRequest(User user, OpenIDAuthRequest authReq)
user
- user processing request.authReq
- OpenIDAuthRequest being processed.OpenIDAuthResponse denyRequest(User user, OpenIDAuthRequest authReq)
user
- user processing request.authReq
- OpenIDAuthRequest being processed.OpenIDAuthResponse allowRequest(User user, long profileID, OpenIDAuthRequest authReq, boolean alwaysAllow)
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.OpenIDAuthResponse checkImmediate(User principal, Locale locale, OpenIDAuthRequest authReq)
principal
- principal corresponding to logged in user.locale
- locale of the logged in user.authReq
- authentication request of the user.Copyright © 2021 Atlassian. All rights reserved.