Class MoSAMLAddIdp

All Implemented Interfaces:
ExtensionPoint, Describable<SecurityRealm>

public class MoSAMLAddIdp extends SecurityRealm
  • Field Details

  • Constructor Details

  • Method Details

    • getLoginUrl

      public String getLoginUrl()
      Overrides:
      getLoginUrl in class SecurityRealm
    • doLogout

      public void doLogout(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
      Overrides:
      doLogout in class SecurityRealm
    • getPostLogOutUrl2

      public String getPostLogOutUrl2(org.kohsuke.stapler.StaplerRequest req, org.springframework.security.core.Authentication auth)
      Overrides:
      getPostLogOutUrl2 in class SecurityRealm
    • 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

      public String 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

      public String getMetadata(MoSAMLPluginSettings settings)
    • getMetadataFromFile

      public static String getMetadataFromFile(String path)
    • configureFromMetadata

      public static List<String> configureFromMetadata(String metadata) throws Exception
      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

      public SecurityRealm.SecurityComponents createSecurityComponents()
      Specified by:
      createSecurityComponents in class SecurityRealm
    • 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

      public String getMetadataUrl()
    • getMetadataFilePath

      public String getMetadataFilePath()
    • getIdpEntityId

      public String getIdpEntityId()
    • getSsoUrl

      public String getSsoUrl()
    • getPublicx509Certificate

      public String getPublicx509Certificate()
    • getUsernameAttribute

      public String getUsernameAttribute()
    • getEmailAttribute

      public String getEmailAttribute()
    • getCustomLoginTemplate

      public String getCustomLoginTemplate() throws IOException
      Throws:
      IOException
    • getNameIDFormat

      public String getNameIDFormat()
    • getUserCreate

      public Boolean getUserCreate()
    • getForceAuthn

      public Boolean getForceAuthn()
    • getRegexPattern

      public String getRegexPattern()
    • getEnableRegexPattern

      public Boolean getEnableRegexPattern()
    • getSsoBindingType

      public String getSsoBindingType()
    • getUsernameCaseConversion

      public String getUsernameCaseConversion()
    • getAuthnContextClass

      public String getAuthnContextClass()
    • getSamlCustomAttributes

      @NonNull public List<MoAttributeEntry> getSamlCustomAttributes()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setCrowdURL

      public void setCrowdURL(String crowdURL)
    • getCrowdURL

      public String getCrowdURL()
    • setCrowdApplicationName

      public void setCrowdApplicationName(String crowdApplicationName)
    • getCrowdApplicationName

      public String getCrowdApplicationName()
    • setCrowdApplicationPassword

      public void setCrowdApplicationPassword(Secret crowdApplicationPassword)
    • getCrowdApplicationPassword

      public Secret getCrowdApplicationPassword()