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 ClassesNested classes/interfaces inherited from class hudson.security.SecurityRealm
SecurityRealm.SecurityComponentsNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MoSAMLAddIdp.DescriptorImplstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class hudson.security.SecurityRealm
AUTHENTICATED_AUTHORITY, AUTHENTICATED_AUTHORITY2, LIST, NO_AUTHENTICATION -
Constructor Summary
ConstructorsConstructorDescriptionMoSAMLAddIdp(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 TypeMethodDescriptionvoidattributeUpdate(MoSAMLPluginSettings settings, User user, MoSAMLResponse moSAMLResponse, String loginType) configureFromMetadata(String metadata) org.kohsuke.stapler.HttpResponsecreateSessionAndLoginUser(User user, org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response, Boolean newUserCreated, MoSAMLPluginSettings settings, String redirectUrl) voiddoDownloadCertificate(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) voiddoLogout(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) org.kohsuke.stapler.HttpResponsedoMoLogin(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response, String errorMessage) voiddoMoLoginAction(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) org.kohsuke.stapler.HttpResponsedoMoSamlAuth(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) voiddoMoSamlLogin(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response, String referer) voiddoMoSAMLSingleSignOnForceStop(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) voiddoMospmetadata(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) getMetadata(MoSAMLPluginSettings settings) static StringgetMetadataFromFile(String path) getPostLogOutUrl2(org.kohsuke.stapler.StaplerRequest req, org.springframework.security.core.Authentication auth) voidsetCrowdApplicationName(String crowdApplicationName) voidsetCrowdApplicationPassword(Secret crowdApplicationPassword) voidsetCrowdURL(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_JENKINS_LOGIN_ACTION
- See Also:
-
MO_JENKINS_SAML_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:
getLoginUrlin classSecurityRealm
-
doLogout
public void doLogout(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) - Overrides:
doLogoutin classSecurityRealm
-
getPostLogOutUrl2
public String getPostLogOutUrl2(org.kohsuke.stapler.StaplerRequest req, org.springframework.security.core.Authentication auth) - Overrides:
getPostLogOutUrl2in 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
-
getTestConfigurationFailed
-
attributeUpdate
public void attributeUpdate(MoSAMLPluginSettings settings, User user, MoSAMLResponse moSAMLResponse, String loginType) -
createSecurityComponents
- Specified by:
createSecurityComponentsin 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
-