public class OicSecurityRealm
extends hudson.security.SecurityRealm
| Modifier and Type | Class and Description |
|---|---|
static class |
OicSecurityRealm.DescriptorImpl |
| Constructor and Description |
|---|
OicSecurityRealm(String clientId,
String clientSecret,
String tokenServerUrl,
String authorizationServerUrl,
String userInfoServerUrl,
String userNameField,
String tokenFieldToCheckKey,
String tokenFieldToCheckValue,
String fullNameFieldName,
String emailFieldName,
String scopes,
String groupsFieldName,
boolean disableSslVerification,
boolean logoutFromOpenidProvider,
String endSessionUrl,
String postLogoutRedirectUrl,
boolean escapeHatchEnabled,
String escapeHatchUsername,
String escapeHatchSecret,
String escapeHatchGroup) |
| Modifier and Type | Method and Description |
|---|---|
hudson.security.SecurityRealm.SecurityComponents |
createSecurityComponents() |
org.kohsuke.stapler.HttpResponse |
doCommenceLogin(String from,
String referer)
handles the the securityRealm/commenceLogin resource
|
org.kohsuke.stapler.HttpResponse |
doEscapeHatch(String username,
String password) |
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.
|
void |
doLogout(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
String |
getAuthenticationGatewayUrl() |
String |
getAuthorizationServerUrl() |
String |
getClientId() |
hudson.util.Secret |
getClientSecret() |
String |
getEmailFieldName() |
String |
getEndSessionUrl() |
String |
getEscapeHatchGroup() |
hudson.util.Secret |
getEscapeHatchSecret() |
String |
getEscapeHatchUsername() |
String |
getFullNameFieldName() |
String |
getGroupsFieldName() |
String |
getLoginUrl()
Login begins with our
doCommenceLogin(String,String) method. |
String |
getPostLogoutRedirectUrl() |
String |
getPostLogOutUrl(org.kohsuke.stapler.StaplerRequest req,
org.acegisecurity.Authentication auth) |
String |
getScopes() |
String |
getTokenFieldToCheckKey() |
String |
getTokenFieldToCheckValue() |
String |
getTokenServerUrl() |
String |
getUserInfoServerUrl() |
String |
getUserNameField() |
boolean |
isDisableSslVerification() |
boolean |
isEscapeHatchEnabled() |
boolean |
isLogoutFromOpenidProvider() |
all, allowsSignup, canLogOut, commenceSignup, createCliAuthenticator, createFilter, doCaptcha, findBean, getCaptchaSupport, getCaptchaSupportDescriptors, getDescriptor, getGroupIdStrategy, getSecurityComponents, getUserIdStrategy, loadGroupByGroupname, loadGroupByGroupname, loadUserByUsername, setCaptchaSupport, validateCaptcha@DataBoundConstructor public OicSecurityRealm(String clientId, String clientSecret, String tokenServerUrl, String authorizationServerUrl, String userInfoServerUrl, String userNameField, String tokenFieldToCheckKey, String tokenFieldToCheckValue, String fullNameFieldName, String emailFieldName, String scopes, String groupsFieldName, boolean disableSslVerification, boolean logoutFromOpenidProvider, String endSessionUrl, String postLogoutRedirectUrl, boolean escapeHatchEnabled, String escapeHatchUsername, String escapeHatchSecret, String escapeHatchGroup) throws IOException
IOExceptionpublic String getClientId()
public hudson.util.Secret getClientSecret()
public String getTokenServerUrl()
public String getAuthorizationServerUrl()
public String getUserInfoServerUrl()
public String getUserNameField()
public String getTokenFieldToCheckKey()
public String getTokenFieldToCheckValue()
public String getFullNameFieldName()
public String getEmailFieldName()
public String getGroupsFieldName()
public String getScopes()
public boolean isDisableSslVerification()
public boolean isLogoutFromOpenidProvider()
public String getEndSessionUrl()
public String getPostLogoutRedirectUrl()
public boolean isEscapeHatchEnabled()
public String getEscapeHatchUsername()
public hudson.util.Secret getEscapeHatchSecret()
public String getEscapeHatchGroup()
public String getLoginUrl()
doCommenceLogin(String,String) method.getLoginUrl in class hudson.security.SecurityRealmpublic String getAuthenticationGatewayUrl()
getAuthenticationGatewayUrl in class hudson.security.SecurityRealmpublic hudson.security.SecurityRealm.SecurityComponents createSecurityComponents()
createSecurityComponents in class hudson.security.SecurityRealmpublic org.kohsuke.stapler.HttpResponse doCommenceLogin(@QueryParameter
String from,
@Header(value="Referer")
String referer)
throws IOException
IOExceptionpublic org.kohsuke.stapler.HttpResponse doEscapeHatch(@QueryParameter(value="j_username")
String username,
@QueryParameter(value="j_password")
String password)
public void doLogout(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
doLogout in class hudson.security.SecurityRealmIOExceptionjavax.servlet.ServletExceptionpublic String getPostLogOutUrl(org.kohsuke.stapler.StaplerRequest req, org.acegisecurity.Authentication auth)
getPostLogOutUrl in class hudson.security.SecurityRealmpublic org.kohsuke.stapler.HttpResponse doFinishLogin(org.kohsuke.stapler.StaplerRequest request)
throws IOException
IOExceptionCopyright © 2016–2018. All rights reserved.