[jboss-jira] [JBoss JIRA] (WFCORE-2682) Elytron token-realm attributes validations

Martin Choma (JIRA) issues at jboss.org
Tue Apr 18 04:54:01 EDT 2017


     [ https://issues.jboss.org/browse/WFCORE-2682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Choma moved JBEAP-10380 to WFCORE-2682:
----------------------------------------------

              Project: WildFly Core  (was: JBoss Enterprise Application Platform)
                  Key: WFCORE-2682  (was: JBEAP-10380)
             Workflow: GIT Pull Request workflow   (was: CDW with loose statuses v1)
          Component/s: Security
                           (was: Security)
    Affects Version/s: 3.0.0.Beta13
                           (was: 7.1.0.DR16)


> Elytron token-realm attributes validations
> ------------------------------------------
>
>                 Key: WFCORE-2682
>                 URL: https://issues.jboss.org/browse/WFCORE-2682
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Security
>    Affects Versions: 3.0.0.Beta13
>            Reporter: Martin Choma
>
> * I am able to set both {{key-store}} and {{public-key}} attributes. However based on model they should be alternatives and thus only one of them should be allowed.
> * Althought, {{key-store}} and {{certificate}} are configured as requires in model, validation does not work.
> Seems it is caused by WFCORE-2317.
> {code}
> "public-key" => {
>     "type" => STRING,
>     "description" => "A public key in PEM Format. During validation, if a public key is provided, signature will be verified based on the key you provided here.",
>     "expressions-allowed" => true,
>     "required" => false,
>     "nillable" => true,
>     "alternatives" => [
>         "key-store",
>         "certificate"
>     ],
>     "min-length" => 1L,
>     "max-length" => 2147483647L
> },
> "key-store" => {
>     "type" => STRING,
>     "description" => "A key store from where the certificate with a public key should be loaded from.",
>     "expressions-allowed" => false,
>     "required" => false,
>     "nillable" => true,
>     "alternatives" => ["public-key"],
>     "requires" => ["certificate"],
>     "capability-reference" => "org.wildfly.security.key-store",
>     "min-length" => 1L,
>     "max-length" => 2147483647L
> },
> "certificate" => {
>     "type" => STRING,
>     "description" => "The name of the certificate with a public key to load from the key store.",
>     "expressions-allowed" => true,
>     "required" => false,
>     "nillable" => true,
>     "alternatives" => ["public-key"],
>     "requires" => ["key-store"],
>     "min-length" => 1L,
>     "max-length" => 2147483647L
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list