public class GitLabSecurityRealm extends SecurityRealm implements UserDetailsService
| Modifier and Type | Class and Description |
|---|---|
static class |
GitLabSecurityRealm.ConverterImpl |
static class |
GitLabSecurityRealm.DescriptorImpl |
SecurityRealm.SecurityComponentsExtensionPoint.LegacyInstancesAreScopedToHudsonAUTHENTICATED_AUTHORITY, LIST, NO_AUTHENTICATION| Constructor and Description |
|---|
GitLabSecurityRealm(String gitlabWebUri,
String gitlabApiUri,
String clientID,
String clientSecret) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsSignup() |
SecurityRealm.SecurityComponents |
createSecurityComponents() |
org.kohsuke.stapler.HttpResponse |
doCommenceLogin(org.kohsuke.stapler.StaplerRequest request,
String from,
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() |
protected String |
getPostLogOutUrl(org.kohsuke.stapler.StaplerRequest req,
Authentication auth) |
int |
hashCode() |
GroupDetails |
loadGroupByGroupname(String groupName) |
UserDetails |
loadUserByUsername(String username) |
all, canLogOut, commenceSignup, createCliAuthenticator, createFilter, doCaptcha, doLogout, findBean, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getFrom, getGroupIdStrategy, 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,
@QueryParameter
String from,
@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 SecurityRealmpublic SecurityRealm.SecurityComponents createSecurityComponents()
createSecurityComponents in class SecurityRealmpublic String getLoginUrl()
getLoginUrl in class SecurityRealmprotected String getPostLogOutUrl(org.kohsuke.stapler.StaplerRequest req, Authentication auth)
getPostLogOutUrl in class SecurityRealmpublic GitLabSecurityRealm.DescriptorImpl getDescriptor()
getDescriptor in interface Describable<SecurityRealm>getDescriptor in class SecurityRealmpublic UserDetails loadUserByUsername(String username) throws UsernameNotFoundException, DataAccessException
loadUserByUsername in interface UserDetailsServiceloadUserByUsername in class SecurityRealmusername - UsernameNotFoundExceptionDataAccessExceptionpublic boolean equals(Object object)
public GroupDetails loadGroupByGroupname(String groupName) throws UsernameNotFoundException, DataAccessException
loadGroupByGroupname in class SecurityRealmgroupName - UsernameNotFoundExceptionDataAccessExceptionCopyright © 2016–2022. All rights reserved.