public class GithubSecurityRealm
extends hudson.security.SecurityRealm
| Modifier and Type | Class and Description |
|---|---|
static class |
GithubSecurityRealm.ConverterImpl |
static class |
GithubSecurityRealm.DescriptorImpl |
| Constructor and Description |
|---|
GithubSecurityRealm(String githubWebUri,
String clientID,
String clientSecret)
Deprecated.
Use
GithubSecurityRealm(String, String, String, String)
instead. |
GithubSecurityRealm(String githubWebUri,
String githubApiUri,
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.
|
String |
getClientID() |
String |
getClientSecret() |
String |
getGithubApiUri() |
String |
getGithubUri()
Deprecated.
use
getGithubWebUri() instead. |
String |
getGithubWebUri() |
String |
getLoginUrl() |
hudson.security.GroupDetails |
loadGroupByGroupname(String groupName) |
org.acegisecurity.userdetails.UserDetails |
loadUserByUsername(String username) |
all, canLogOut, commenceSignup, createCliAuthenticator, createFilter, doCaptcha, doLogout, findBean, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getDescriptor, getPostLogOutUrl, getSecurityComponents, setCaptchaSupport, validateCaptcha@DataBoundConstructor public GithubSecurityRealm(String githubWebUri, String githubApiUri, String clientID, String clientSecret)
githubWebUri - The URI to the root of the web UI for GitHub or GitHub Enterprise,
including the protocol (e.g. https).githubApiUri - The URI to the root of the API for GitHub or GitHub Enterprise,
including the protocol (e.g. https).clientID - The client ID for the created OAuth Application.clientSecret - The client secret for the created GitHub OAuth Application.@Deprecated public GithubSecurityRealm(String githubWebUri, String clientID, String clientSecret)
GithubSecurityRealm(String, String, String, String)
instead.githubWebUri - The URI to the root of the web UI for GitHub or GitHub Enterprise.clientID - The client ID for the created OAuth Application.clientSecret - The client secret for the created GitHub OAuth Application.public String getGithubApiUri()
public String getGithubWebUri()
@Deprecated public String getGithubUri()
getGithubWebUri() instead.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 org.acegisecurity.userdetails.UserDetails loadUserByUsername(String username) throws org.acegisecurity.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadUserByUsername in class hudson.security.SecurityRealmusername - org.acegisecurity.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessExceptionpublic 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 © 2004-2014. All Rights Reserved.