Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-1239

Elytron client, elytron-1_0.xsd, protection-parameter-credentials is incorrectly defined as client-credentials-type.

    XMLWordPrintable

Details

    Description

      Elytron client, elytron-1_0.xsd, protection-parameter-credentials is incorrectly defined as client-credentials-type [1].

      For protection-parameter-credentials is valid only credential-store-reference element:

       <xsd:element name="credential-store-reference" type="credential-store-reference-type"/>
      

      But now is protection-parameter-credentials defined as type client-credentials-type [1] which can have these values:

         <xsd:complexType name="client-credentials-type">
              <xsd:choice minOccurs="0" maxOccurs="unbounded">
                  <xsd:element name="key-store-reference" type="key-store-ref-type"/>
                  <xsd:element name="credential-store-reference" type="credential-store-reference-type"/>
                  <xsd:element name="clear-password" type="clear-password-type"/>
                  <xsd:element name="hashed-password" type="hashed-password-type"/>
                  <xsd:element name="crypt-password" type="crypt-password-type"/>
                  <xsd:element name="key-pair" type="key-pair-type"/>
                  <xsd:element name="certificate" type="certificate-type"/>
                  <xsd:element name="public-key-pem" type="xsd:string"/>
                  <xsd:element name="bearer-token" type="bearer-token-type"/>
                  <xsd:element name="oauth2-bearer-token" type="oauth2-bearer-token-type"/>
              </xsd:choice>
          </xsd:complexType>
      

      Please keep on mind that changes must be done accordingly in ElytronXMLParser too.

      [1] https://github.com/wildfly-security/wildfly-elytron/blob/1.1.0.Beta47/src/main/resources/schema/elytron-1_0.xsd#L100

      Attachments

        Issue Links

          Activity

            People

              jucook Justin Cook (Inactive)
              hsvabek_jira Hynek Švábek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: