public class CasSecurityRealm
extends hudson.security.SecurityRealm
https://www.apereo.org/projects/cas| Modifier and Type | Class and Description |
|---|---|
static class |
CasSecurityRealm.DescriptorImpl |
| Modifier and Type | Field and Description |
|---|---|
CasProtocol |
casProtocol |
String |
casServerUrl |
static String |
DEFAULT_COMMENCE_LOGIN_URL |
static String |
DEFAULT_FAILED_LOGIN_URL |
static String |
DEFAULT_FINISH_LOGIN_URL |
Boolean |
enableSingleSignOut |
Boolean |
forceRenewal |
| Constructor and Description |
|---|
CasSecurityRealm(String casServerUrl,
CasProtocol casProtocol,
Boolean forceRenewal,
Boolean enableSingleSignOut) |
| Modifier and Type | Method and Description |
|---|---|
javax.servlet.Filter |
createFilter(javax.servlet.FilterConfig filterConfig)
Build the filter that will validate the service ticket returned by CAS.
|
hudson.security.SecurityRealm.SecurityComponents |
createSecurityComponents()
Build a no-op authentication manager as everything is handled by a
separate CAS filter chain.
|
void |
doCommenceLogin(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
The login process starts from here, using the CasAuthenticationEntryPoint
defined in the CasSecurityRealm.groovy application context.
|
void |
doFinishLogin(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
The login process finishes here, although by the time this action is called
everything has already been taken care of by filters.
|
void |
doLogout(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Handles the logout processing.
|
protected org.springframework.web.context.WebApplicationContext |
getApplicationContext()
Create the Spring application context that will hold CAS filters.
|
static String |
getFailedLoginUrl() |
static String |
getFinishLoginUrl() |
static String |
getJenkinsUrl() |
static String |
getJenkinsUrl(javax.servlet.http.HttpServletRequest req) |
String |
getLoginUrl()
Login begins with our
#doCommenceLogin(String) method. |
protected String |
getPostLogOutUrl(org.kohsuke.stapler.StaplerRequest req,
org.acegisecurity.Authentication auth)
Logout redirects to CAS before coming back to Jenkins.
|
static String |
getServiceUrl(javax.servlet.http.HttpServletRequest req,
org.springframework.security.cas.ServiceProperties serviceProperties) |
all, allowsSignup, canLogOut, commenceSignup, createCliAuthenticator, doCaptcha, findBean, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getDescriptor, getSecurityComponents, loadGroupByGroupname, loadUserByUsername, setCaptchaSupport, validateCaptchapublic static final String DEFAULT_COMMENCE_LOGIN_URL
public static final String DEFAULT_FINISH_LOGIN_URL
public static final String DEFAULT_FAILED_LOGIN_URL
public final String casServerUrl
public final CasProtocol casProtocol
public final Boolean forceRenewal
public final Boolean enableSingleSignOut
@DataBoundConstructor public CasSecurityRealm(String casServerUrl, CasProtocol casProtocol, Boolean forceRenewal, Boolean enableSingleSignOut)
public static String getJenkinsUrl()
public static String getJenkinsUrl(javax.servlet.http.HttpServletRequest req)
public static String getFinishLoginUrl()
public static String getFailedLoginUrl()
public static String getServiceUrl(javax.servlet.http.HttpServletRequest req, org.springframework.security.cas.ServiceProperties serviceProperties)
protected org.springframework.web.context.WebApplicationContext getApplicationContext()
public String getLoginUrl()
#doCommenceLogin(String) method.getLoginUrl in class hudson.security.SecurityRealmprotected String getPostLogOutUrl(org.kohsuke.stapler.StaplerRequest req, org.acegisecurity.Authentication auth)
getPostLogOutUrl in class hudson.security.SecurityRealmpublic hudson.security.SecurityRealm.SecurityComponents createSecurityComponents()
createSecurityComponents in class hudson.security.SecurityRealmpublic javax.servlet.Filter createFilter(javax.servlet.FilterConfig filterConfig)
createFilter in class hudson.security.SecurityRealmpublic void doLogout(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
doLogout in class hudson.security.SecurityRealmIOExceptionjavax.servlet.ServletExceptionpublic void doCommenceLogin(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic void doFinishLogin(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Copyright © 2004-2015. All Rights Reserved.