public class KeycloakSecurityRealm
extends hudson.security.SecurityRealm
| Modifier and Type | Class and Description |
|---|---|
static class |
KeycloakSecurityRealm.DescriptorImpl
Descriptor definition for Jenkins
|
static class |
KeycloakSecurityRealm.ServletFacade |
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTH_REQUESTED
This constant is used to save the state of an authenticated session.
|
static String |
JENKINS_FINISH_LOGIN_URL
The default URL to finish the login process of this plugin
|
| Constructor and Description |
|---|
KeycloakSecurityRealm()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsSignup() |
boolean |
checkKeycloakOnEachRequest()
Returns true if authentication should be checked on each response
|
hudson.security.SecurityRealm.SecurityComponents |
createSecurityComponents() |
org.kohsuke.stapler.HttpResponse |
doCommenceLogin(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response,
String referer) |
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.
|
void |
doLogout(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
KeycloakSecurityRealm.DescriptorImpl |
getDescriptor() |
org.keycloak.adapters.KeycloakDeployment |
getKeycloakDeployment()
Returns the current KeycloakDeployment configuration.
|
String |
getKeycloakJson()
Returns the keycloak json configuration
|
String |
getLoginUrl() |
boolean |
respectAccessTokenTimeout()
Returns true if the access token should be only refreshed after its timeout
|
all, canLogOut, commenceSignup, createCliAuthenticator, createFilter, doCaptcha, findBean, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getGroupIdStrategy, getPostLogOutUrl, getSecurityComponents, getUserIdStrategy, loadGroupByGroupname, loadGroupByGroupname, loadUserByUsername, setCaptchaSupport, validateCaptchapublic static final String JENKINS_FINISH_LOGIN_URL
public static final String AUTH_REQUESTED
@DataBoundConstructor
public KeycloakSecurityRealm()
throws IOException
IOException - -public org.kohsuke.stapler.HttpResponse doCommenceLogin(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response,
@Header(value="Referer")
String referer)
throws IOException
request - the Jenkins requestresponse - the Jenkins responsereferer - the referrerHttpResponse the responseIOExceptionpublic org.kohsuke.stapler.HttpResponse doFinishLogin(org.kohsuke.stapler.StaplerRequest request)
throws IOException
request - the Jenkins requestHttpResponse the responseIOExceptionpublic boolean allowsSignup()
allowsSignup in class hudson.security.SecurityRealmpublic hudson.security.SecurityRealm.SecurityComponents createSecurityComponents()
createSecurityComponents in class hudson.security.SecurityRealmpublic String getLoginUrl()
getLoginUrl 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 KeycloakSecurityRealm.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.security.SecurityRealm>getDescriptor in class hudson.security.SecurityRealmpublic String getKeycloakJson()
String the json configurationpublic boolean checkKeycloakOnEachRequest()
Booleanpublic boolean respectAccessTokenTimeout()
Booleanpublic org.keycloak.adapters.KeycloakDeployment getKeycloakDeployment()
throws IOException
KeycloakDeployment the keycloak configurationIOExceptionCopyright © 2016–2017. All rights reserved.