public class OpenIdSsoSecurityRealm
extends hudson.security.SecurityRealm
Modifier and Type | Class and Description |
---|---|
static class |
OpenIdSsoSecurityRealm.DescriptorImpl |
Constructor and Description |
---|
OpenIdSsoSecurityRealm(String endpoint) |
Modifier and Type | Method and Description |
---|---|
protected void |
addProxyPropertiesToHttpClient() |
protected org.openid4java.consumer.ConsumerManager |
createManager() |
hudson.security.SecurityRealm.SecurityComponents |
createSecurityComponents()
Acegi has this notion that first an
Authentication object is created
by collecting user information and then the act of authentication is done
later (by AuthenticationManager ) to verify it. |
org.kohsuke.stapler.HttpResponse |
doCommenceLogin(String from)
The login process starts from here.
|
org.kohsuke.stapler.HttpResponse |
doFinishLogin(org.kohsuke.stapler.StaplerRequest request)
This is where the user comes back to at the end of the OpenID redirect ping-pong.
|
String |
getLoginUrl()
Login begins with our
doCommenceLogin(String) method. |
boolean |
isApplicable(OpenIdExtension openIdExtension)
Allow OpenId SSO Security Realms to determine the extensions that are applicable.
|
all, allowsSignup, canLogOut, commenceSignup, createCliAuthenticator, createFilter, doCaptcha, doLogout, findBean, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getDescriptor, getFrom, getGroupIdStrategy, getPostLogOutUrl, getSecurityComponents, getUserIdStrategy, loadGroupByGroupname, loadGroupByGroupname, loadUserByUsername, setCaptchaSupport, validateCaptcha
public final String endpoint
@DataBoundConstructor public OpenIdSsoSecurityRealm(String endpoint) throws IOException, org.openid4java.OpenIDException
IOException
org.openid4java.OpenIDException
protected org.openid4java.consumer.ConsumerManager createManager() throws org.openid4java.consumer.ConsumerException
org.openid4java.consumer.ConsumerException
protected void addProxyPropertiesToHttpClient()
public String getLoginUrl()
doCommenceLogin(String)
method.getLoginUrl
in class hudson.security.SecurityRealm
public hudson.security.SecurityRealm.SecurityComponents createSecurityComponents()
Authentication
object is created
by collecting user information and then the act of authentication is done
later (by AuthenticationManager
) to verify it. But in case of OpenID,
we create an Authentication
only after we verified the user identity,
so AuthenticationManager
becomes no-op.createSecurityComponents
in class hudson.security.SecurityRealm
SecurityComponents
public org.kohsuke.stapler.HttpResponse doCommenceLogin(@QueryParameter String from) throws IOException, org.openid4java.OpenIDException
IOException
org.openid4java.OpenIDException
public org.kohsuke.stapler.HttpResponse doFinishLogin(org.kohsuke.stapler.StaplerRequest request) throws IOException, org.openid4java.OpenIDException
IOException
org.openid4java.OpenIDException
public boolean isApplicable(OpenIdExtension openIdExtension)
openIdExtension
- the extension.true
if this extension is appropriate.Copyright © 2016–2020. All rights reserved.