Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66828

SAML settings wiped out on config load when using Configuration as Code plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Jenkins version: 2.303.2
      Plugin versions: saml:2.0.8, configuration-as-code:1.54
      OS: Ubuntu 20.04.3 LTS
    • saml-2.1.0

      After configuring SAML settings and saving changes to my jcasc yaml file, the settings are wiped out and the following error is displayed when viewing the casc config via the GUI:

      samlCustomProperty:
       attributes: |-
       FAILED TO EXPORT
       org.jenkinsci.plugins.saml.user.SamlCustomProperty#attributes: No configurator found for type class org.jenkinsci.plugins.saml.user.SamlCustomProperty$Attribute

       

      config file for SAML in casc yaml looks like this:

      securityRealm:
       saml:
       binding: "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
       displayNameAttributeName: "displayName"
       emailAttributeName: "Email"
       groupsAttributeName: "group"
       idpMetadataConfiguration:
       period: 0
       url: "https://xxxxxxxxx.okta.com/app/xxxxxxxxxxxxx/sso/saml/metadata"
       logoutUrl: "https://xxxxxxxxxx.okta.com"
       maximumAuthenticationLifetime: 31536000
       usernameCaseConversion: "none"

            ifernandezcalvo Ivan Fernandez Calvo
            gcarnell Gabe Carnell
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: