public class OpenShiftOAuth2SecurityRealm
extends hudson.security.SecurityRealm
| Modifier and Type | Class and Description |
|---|---|
static class |
OpenShiftOAuth2SecurityRealm.DescriptorImpl |
| Modifier and Type | Field and Description |
|---|---|
static String |
SECURITY_REALM_FINISH_LOGIN |
| Constructor and Description |
|---|
OpenShiftOAuth2SecurityRealm(String serviceAccountDirectory,
String serviceAccountName,
String serverPrefix,
String clientId,
String clientSecret,
String redirectURL) |
| Modifier and Type | Method and Description |
|---|---|
String |
buildOAuthRedirectUrl(String redirect) |
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) |
org.acegisecurity.providers.UsernamePasswordAuthenticationToken |
updateAuthorizationStrategy(com.google.api.client.auth.oauth2.Credential credential) |
all, allowsSignup, canLogOut, commenceSignup, createCliAuthenticator, createFilter, doCaptcha, doLogout, findBean, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getDescriptor, getGroupIdStrategy, getSecurityComponents, getUserIdStrategy, loadGroupByGroupname, loadGroupByGroupname, loadUserByUsername, setCaptchaSupport, validateCaptchapublic static final String SECURITY_REALM_FINISH_LOGIN
@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) throws MalformedURLException
MalformedURLExceptionpublic org.acegisecurity.providers.UsernamePasswordAuthenticationToken updateAuthorizationStrategy(com.google.api.client.auth.oauth2.Credential credential)
throws IOException,
GeneralSecurityException
IOExceptionGeneralSecurityExceptionpublic org.kohsuke.stapler.HttpResponse doCommenceLogin(@QueryParameter
String from,
@Header(value="Referer")
String referer)
throws IOException
IOExceptionpublic String buildOAuthRedirectUrl(String redirect) throws MalformedURLException
MalformedURLExceptionpublic 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-2019. All Rights Reserved.