Package org.miniorange.saml
Class MoSAMLAddIdp
java.lang.Object
hudson.model.AbstractDescribableImpl<SecurityRealm>
hudson.security.SecurityRealm
org.miniorange.saml.MoSAMLAddIdp
- All Implemented Interfaces:
ExtensionPoint
,Describable<SecurityRealm>
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.security.SecurityRealm
SecurityRealm.SecurityComponents
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Modifier and TypeFieldDescriptionstatic final MoSAMLAddIdp.DescriptorImpl
static final String
static final String
static final String
Fields inherited from class hudson.security.SecurityRealm
AUTHENTICATED_AUTHORITY, AUTHENTICATED_AUTHORITY2, LIST, NO_AUTHENTICATION
-
Constructor Summary
ConstructorDescriptionMoSAMLAddIdp
(String idpEntityId, String ssoUrl, String metadataUrl, String metadataFilePath, String publicx509Certificate, String usernameCaseConversion, String usernameAttribute, String emailAttribute, String fullnameAttribute, String nameIDFormat, String sslUrl, String loginType, String regexPattern, Boolean enableRegexPattern, Boolean signedRequest, Boolean splitnameAttribute, Boolean userCreate, Boolean forceAuthn, String ssoBindingType, String sloBindingType, List<MoAttributeEntry> samlCustomAttributes, Boolean userAttributeUpdate, String authnContextClass, String crowdURL, String crowdApplicationName, Secret crowdApplicationPassword) -
Method Summary
Modifier and TypeMethodDescriptionvoid
attributeUpdate
(MoSAMLPluginSettings settings, User user, MoSAMLResponse moSAMLResponse, String loginType) configureFromMetadata
(String metadata) org.kohsuke.stapler.HttpResponse
createSessionAndLoginUser
(User user, org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response, Boolean newUserCreated, MoSAMLPluginSettings settings, String redirectUrl) void
doDownloadCertificate
(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) void
doLogout
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) org.kohsuke.stapler.HttpResponse
doMoLogin
(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response, String errorMessage) void
doMoLoginAction
(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) org.kohsuke.stapler.HttpResponse
doMoSamlAuth
(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) void
doMoSamlLogin
(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response, String referer) void
doMoSAMLSingleSignOnForceStop
(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) void
doMospmetadata
(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) getMetadata
(MoSAMLPluginSettings settings) static String
getMetadataFromFile
(String path) getPostLogOutUrl2
(org.kohsuke.stapler.StaplerRequest req, org.springframework.security.core.Authentication auth) void
setCrowdApplicationName
(String crowdApplicationName) void
setCrowdApplicationPassword
(Secret crowdApplicationPassword) void
setCrowdURL
(String crowdURL) toString()
Methods inherited from class hudson.security.SecurityRealm
all, allowsSignup, canLogOut, commenceSignup, commonFilters, createCliAuthenticator, createFilter, doCaptcha, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getDescriptor, getFrom, getGroupIdStrategy, getPostLogOutUrl, getSecurityComponents, getUserIdStrategy, loadGroupByGroupname, loadGroupByGroupname, loadGroupByGroupname2, loadUserByUsername, loadUserByUsername2, setCaptchaSupport, validateCaptcha
-
Field Details
-
MO_SAML_SP_AUTH_URL
- See Also:
-
MO_SAML_JENKINS_LOGIN_ACTION
- See Also:
-
MO_SAML_SSO_FORCE_STOP
- See Also:
-
DESCRIPTOR
-
-
Constructor Details
-
MoSAMLAddIdp
@DataBoundConstructor public MoSAMLAddIdp(String idpEntityId, String ssoUrl, String metadataUrl, String metadataFilePath, String publicx509Certificate, String usernameCaseConversion, String usernameAttribute, String emailAttribute, String fullnameAttribute, String nameIDFormat, String sslUrl, String loginType, String regexPattern, Boolean enableRegexPattern, Boolean signedRequest, Boolean splitnameAttribute, Boolean userCreate, Boolean forceAuthn, String ssoBindingType, String sloBindingType, List<MoAttributeEntry> samlCustomAttributes, Boolean userAttributeUpdate, String authnContextClass, String crowdURL, String crowdApplicationName, Secret crowdApplicationPassword) throws Exception - Throws:
Exception
-
-
Method Details
-
getLoginUrl
- Overrides:
getLoginUrl
in classSecurityRealm
-
doLogout
public void doLogout(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) - Overrides:
doLogout
in classSecurityRealm
-
getPostLogOutUrl2
public String getPostLogOutUrl2(org.kohsuke.stapler.StaplerRequest req, org.springframework.security.core.Authentication auth) - Overrides:
getPostLogOutUrl2
in classSecurityRealm
-
doMoLogin
public org.kohsuke.stapler.HttpResponse doMoLogin(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response, String errorMessage) -
doMoLoginAction
public void doMoLoginAction(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) -
doMoSamlLogin
public void doMoSamlLogin(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response, @Header("Referer") String referer) -
getBaseUrl
-
doMoSAMLSingleSignOnForceStop
public void doMoSAMLSingleSignOnForceStop(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) -
doMospmetadata
public void doMospmetadata(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) -
doDownloadCertificate
public void doDownloadCertificate(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) -
getMetadata
-
getMetadataFromFile
-
configureFromMetadata
- Throws:
Exception
-
doMoSamlAuth
public org.kohsuke.stapler.HttpResponse doMoSamlAuth(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException - Throws:
IOException
-
attributeUpdate
public void attributeUpdate(MoSAMLPluginSettings settings, User user, MoSAMLResponse moSAMLResponse, String loginType) -
createSecurityComponents
- Specified by:
createSecurityComponents
in classSecurityRealm
-
createSessionAndLoginUser
public org.kohsuke.stapler.HttpResponse createSessionAndLoginUser(User user, org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response, Boolean newUserCreated, MoSAMLPluginSettings settings, String redirectUrl) -
getMetadataUrl
-
getMetadataFilePath
-
getIdpEntityId
-
getSsoUrl
-
getPublicx509Certificate
-
getUsernameAttribute
-
getEmailAttribute
-
getCustomLoginTemplate
- Throws:
IOException
-
getNameIDFormat
-
getUserCreate
-
getForceAuthn
-
getRegexPattern
-
getEnableRegexPattern
-
getSsoBindingType
-
getUsernameCaseConversion
-
getAuthnContextClass
-
getSamlCustomAttributes
-
toString
-
setCrowdURL
-
getCrowdURL
-
setCrowdApplicationName
-
getCrowdApplicationName
-
setCrowdApplicationPassword
-
getCrowdApplicationPassword
-