You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Dave Meier (JIRA)" <ji...@apache.org> on 2008/02/29 06:56:51 UTC

[jira] Created: (AXIS2C-1024) Neethi does not support ExactlyOne to allow using OR when defining two tokens where only one or the other is desired

Neethi does not support ExactlyOne to allow using OR when defining two tokens where only one or the other is desired
--------------------------------------------------------------------------------------------------------------------

                 Key: AXIS2C-1024
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1024
             Project: Axis2-C
          Issue Type: Bug
          Components: rampart
    Affects Versions: Current (Nightly)
         Environment: Windows XP.
            Reporter: Dave Meier
            Priority: Critical


The spec I'm looking at is http://specs.xmlsoap.org/ws/2005/07/securitypolicy/ws-securitypolicy.pdf in section 4.1.1. 

The spec shows how to OR things together in the policy, but when I tried that it in rampart/c it didn't work. Here's what I tried (showing just the SignedSupportingTokens:

        <sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
        <wsp:Policy>
          <wsp:ExactlyOne>
            <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>
            <sp:SamlToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>
          </wsp:ExactlyOne>
        </wsp:Policy>
        </sp:SignedSupportingTokens>

This should accept either UsernameToken or SamlToken.

Also tried the following without success:

        <sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
        <wsp:Policy>
         <wsp:All>
         <wsp:ExactlyOne>
           <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>
           <sp:SamlToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>
         </wsp:ExactlyOne>
         </wsp:All>
        </wsp:Policy>
        </sp:SignedSupportingTokens>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Updated: (AXIS2C-1024) Neethi does not support ExactlyOne to allow using OR when defining two tokens where only one or the other is desired

Posted by "S.Uthaiyashankar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

S.Uthaiyashankar updated AXIS2C-1024:
-------------------------------------

    Component/s: neethi

> Neethi does not support ExactlyOne to allow using OR when defining two tokens where only one or the other is desired
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1024
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1024
>             Project: Axis2-C
>          Issue Type: New Feature
>          Components: neethi, rampart
>    Affects Versions: Current (Nightly)
>         Environment: Windows XP.
>            Reporter: Dave Meier
>
> The spec I'm looking at is http://specs.xmlsoap.org/ws/2005/07/securitypolicy/ws-securitypolicy.pdf in section 4.1.1. 
> The spec shows how to OR things together in the policy, but when I tried that it in rampart/c it didn't work. Here's what I tried (showing just the SignedSupportingTokens:
>         <sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>         <wsp:Policy>
>           <wsp:ExactlyOne>
>             <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>
>             <sp:SamlToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>
>           </wsp:ExactlyOne>
>         </wsp:Policy>
>         </sp:SignedSupportingTokens>
> This should accept either UsernameToken or SamlToken.
> Also tried the following without success:
>         <sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>         <wsp:Policy>
>          <wsp:All>
>          <wsp:ExactlyOne>
>            <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>
>            <sp:SamlToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>
>          </wsp:ExactlyOne>
>          </wsp:All>
>         </wsp:Policy>
>         </sp:SignedSupportingTokens>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AXIS2C-1024) Neethi does not support ExactlyOne to allow using OR when defining two tokens where only one or the other is desired

Posted by "S.Uthaiyashankar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

S.Uthaiyashankar updated AXIS2C-1024:
-------------------------------------

    Issue Type: New Feature  (was: Bug)

> Neethi does not support ExactlyOne to allow using OR when defining two tokens where only one or the other is desired
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1024
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1024
>             Project: Axis2-C
>          Issue Type: New Feature
>          Components: rampart
>    Affects Versions: Current (Nightly)
>         Environment: Windows XP.
>            Reporter: Dave Meier
>
> The spec I'm looking at is http://specs.xmlsoap.org/ws/2005/07/securitypolicy/ws-securitypolicy.pdf in section 4.1.1. 
> The spec shows how to OR things together in the policy, but when I tried that it in rampart/c it didn't work. Here's what I tried (showing just the SignedSupportingTokens:
>         <sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>         <wsp:Policy>
>           <wsp:ExactlyOne>
>             <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>
>             <sp:SamlToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>
>           </wsp:ExactlyOne>
>         </wsp:Policy>
>         </sp:SignedSupportingTokens>
> This should accept either UsernameToken or SamlToken.
> Also tried the following without success:
>         <sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>         <wsp:Policy>
>          <wsp:All>
>          <wsp:ExactlyOne>
>            <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>
>            <sp:SamlToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>
>          </wsp:ExactlyOne>
>          </wsp:All>
>         </wsp:Policy>
>         </sp:SignedSupportingTokens>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AXIS2C-1024) Neethi does not support ExactlyOne to allow using OR when defining two tokens where only one or the other is desired

Posted by "Supun Kamburugamuva (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Supun Kamburugamuva updated AXIS2C-1024:
----------------------------------------

    Priority: Major  (was: Critical)

This is not a blocker to Axis2/C. So I'm downgrading the priority.

> Neethi does not support ExactlyOne to allow using OR when defining two tokens where only one or the other is desired
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1024
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1024
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: rampart
>    Affects Versions: Current (Nightly)
>         Environment: Windows XP.
>            Reporter: Dave Meier
>
> The spec I'm looking at is http://specs.xmlsoap.org/ws/2005/07/securitypolicy/ws-securitypolicy.pdf in section 4.1.1. 
> The spec shows how to OR things together in the policy, but when I tried that it in rampart/c it didn't work. Here's what I tried (showing just the SignedSupportingTokens:
>         <sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>         <wsp:Policy>
>           <wsp:ExactlyOne>
>             <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>
>             <sp:SamlToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>
>           </wsp:ExactlyOne>
>         </wsp:Policy>
>         </sp:SignedSupportingTokens>
> This should accept either UsernameToken or SamlToken.
> Also tried the following without success:
>         <sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>         <wsp:Policy>
>          <wsp:All>
>          <wsp:ExactlyOne>
>            <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>
>            <sp:SamlToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>
>          </wsp:ExactlyOne>
>          </wsp:All>
>         </wsp:Policy>
>         </sp:SignedSupportingTokens>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org