public class OpenShiftOAuth2SecurityRealm
extends hudson.security.SecurityRealm
| Modifier and Type | Class and Description |
|---|---|
static class |
OpenShiftOAuth2SecurityRealm.DescriptorImpl |
| Constructor and Description |
|---|
OpenShiftOAuth2SecurityRealm(String serviceAccountDirectory,
String serviceAccountName,
String serverPrefix,
String clientId,
String clientSecret,
String redirectURL) |
| Modifier and Type | Method and Description |
|---|---|
hudson.security.SecurityRealm.SecurityComponents |
createSecurityComponents()
Acegi has this notion that first an
Authentication object is created
by collecting user information and then the act of authentication is done
later (by AuthenticationManager) to verify it. |
org.kohsuke.stapler.HttpResponse |
doCommenceLogin(String from,
String referer)
The login process starts from here.
|
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() |
hudson.util.Secret |
getClientSecret() |
String |
getDefaultedClientId() |
hudson.util.Secret |
getDefaultedClientSecret() |
String |
getDefaultedNamespace() |
String |
getDefaultedRedirectURL() |
String |
getDefaultedServerPrefix() |
String |
getDefaultedServiceAccountDirectory() |
String |
getDefaultedServiceAccountName() |
String |
getLoginUrl()
Login begins with our
doCommenceLogin(String,String) method. |
protected String |
getPostLogOutUrl(org.kohsuke.stapler.StaplerRequest req,
org.acegisecurity.Authentication auth) |
String |
getRedirectURL() |
String |
getServerPrefix() |
String |
getServiceAccountDirectory() |
String |
getServiceAccountName() |
protected OAuthSession |
newOAuthSession(String from,
String redirectOnFinish) |
void |
updateAuthorizationStrategy(OAuthSession oauth) |
all, allowsSignup, canLogOut, commenceSignup, createCliAuthenticator, createFilter, doCaptcha, doLogout, findBean, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getDescriptor, getGroupIdStrategy, getSecurityComponents, getUserIdStrategy, loadGroupByGroupname, loadGroupByGroupname, loadUserByUsername, setCaptchaSupport, validateCaptcha@DataBoundConstructor public OpenShiftOAuth2SecurityRealm(String serviceAccountDirectory, String serviceAccountName, String serverPrefix, String clientId, String clientSecret, String redirectURL) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionpublic String getServiceAccountDirectory()
public String getDefaultedServiceAccountDirectory()
public String getServiceAccountName()
public String getDefaultedServiceAccountName()
public String getServerPrefix()
public String getDefaultedServerPrefix()
public String getRedirectURL()
public String getDefaultedRedirectURL()
public String getClientId()
public String getDefaultedClientId()
public hudson.util.Secret getClientSecret()
public hudson.util.Secret getDefaultedClientSecret()
public String getDefaultedNamespace()
public String getLoginUrl()
doCommenceLogin(String,String) method.getLoginUrl in class hudson.security.SecurityRealmpublic hudson.security.SecurityRealm.SecurityComponents createSecurityComponents()
Authentication object is created
by collecting user information and then the act of authentication is done
later (by AuthenticationManager) to verify it. But in case of OpenID,
we create an Authentication only after we verified the user identity,
so AuthenticationManager becomes no-op.createSecurityComponents in class hudson.security.SecurityRealmprotected OAuthSession newOAuthSession(String from, String redirectOnFinish)
public void updateAuthorizationStrategy(OAuthSession oauth) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionpublic org.kohsuke.stapler.HttpResponse doCommenceLogin(@QueryParameter
String from,
@Header(value="Referer")
String referer)
throws IOException
IOExceptionpublic org.kohsuke.stapler.HttpResponse doFinishLogin(org.kohsuke.stapler.StaplerRequest request)
throws IOException
IOExceptionprotected String getPostLogOutUrl(org.kohsuke.stapler.StaplerRequest req, org.acegisecurity.Authentication auth)
getPostLogOutUrl in class hudson.security.SecurityRealmCopyright © 2004-2016. All Rights Reserved.