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

Brian Stansberry (JIRA) issues at jboss.org
Sun Apr 23 19:57:00 EDT 2017


    [ https://issues.jboss.org/browse/WFCORE-2682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396748#comment-13396748 ] 

Brian Stansberry commented on WFCORE-2682:
------------------------------------------

This looks like a duplicate of WFCORE-2317; should be fixed.

> 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