public class GitLabSecurityRealm
extends hudson.security.SecurityRealm
implements org.acegisecurity.userdetails.UserDetailsService
| Modifier and Type | Class and Description |
|---|---|
static class |
GitLabSecurityRealm.ConverterImpl |
static class |
GitLabSecurityRealm.DescriptorImpl |
| Constructor and Description |
|---|
GitLabSecurityRealm(String gitlabWebUri,
String gitlabApiUri,
String clientID,
String clientSecret) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsSignup() |
hudson.security.SecurityRealm.SecurityComponents |
createSecurityComponents() |
org.kohsuke.stapler.HttpResponse |
doCommenceLogin(org.kohsuke.stapler.StaplerRequest request,
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.
|
boolean |
equals(Object object)
Compare an object against this instance for equivalence.
|
String |
getClientID() |
String |
getClientSecret() |
GitLabSecurityRealm.DescriptorImpl |
getDescriptor() |
String |
getGitlabApiUri() |
String |
getGitlabWebUri() |
String |
getLoginUrl() |
int |
hashCode() |
hudson.security.GroupDetails |
loadGroupByGroupname(String groupName) |
org.acegisecurity.userdetails.UserDetails |
loadUserByUsername(String username) |
all, canLogOut, commenceSignup, createCliAuthenticator, createFilter, doCaptcha, doLogout, findBean, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getFrom, getGroupIdStrategy, getPostLogOutUrl, getSecurityComponents, getUserIdStrategy, loadGroupByGroupname, setCaptchaSupport, validateCaptcha@DataBoundConstructor public GitLabSecurityRealm(String gitlabWebUri, String gitlabApiUri, String clientID, String clientSecret)
gitlabWebUri - The URI to the root of the web UI for GitLab or GitLab
Enterprise, including the protocol (e.g. https).gitlabApiUri - The URI to the root of the API for GitLab or GitLab
Enterprise, including the protocol (e.g. https).clientID - The client ID for the created OAuth Application.clientSecret - The client secret for the created GitLab OAuth Application.public String getGitlabApiUri()
public String getGitlabWebUri()
public String getClientID()
public String getClientSecret()
public org.kohsuke.stapler.HttpResponse doCommenceLogin(org.kohsuke.stapler.StaplerRequest request,
@Header(value="Referer")
String referer)
throws IOException
IOExceptionpublic org.kohsuke.stapler.HttpResponse doFinishLogin(org.kohsuke.stapler.StaplerRequest request)
throws IOException
IOExceptionpublic 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 GitLabSecurityRealm.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.security.SecurityRealm>getDescriptor in class hudson.security.SecurityRealmpublic org.acegisecurity.userdetails.UserDetails loadUserByUsername(String username) throws org.acegisecurity.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadUserByUsername in interface org.acegisecurity.userdetails.UserDetailsServiceloadUserByUsername in class hudson.security.SecurityRealmusername - org.acegisecurity.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessExceptionpublic boolean equals(Object object)
public hudson.security.GroupDetails loadGroupByGroupname(String groupName) throws org.acegisecurity.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadGroupByGroupname in class hudson.security.SecurityRealmgroupName - org.acegisecurity.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessExceptionCopyright © 2016–2017. All rights reserved.