[
https://issues.apache.org/jira/browse/RAMPART-463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18146787#comment-18146787
]
Robert Lazarski commented on RAMPART-463:
-----------------------------------------
[~andreasmartens] This is intended. Rampart is built on WSS4J, which enforces
the WS-I Basic Security Profile 1.1 rules on every received
message by default. R4201 is one of them. The profile is stricter than the
WS-Security UsernameToken Profile it constrains,
which is why a Password without a Type attribute is accepted by the spec but
rejected by default here.
To accept such messages, set disableBSPEnforcement to true in the
RampartConfig section of your policy. WSS4J then treats a
missing Type as PasswordText. Note that it turns off all BSP checks, not just
this one.
The documentation now says this: the specifications page lists the profile
and the configuration guide explains the switch
(master, 4e9e9903). If per-rule control is needed, please open a separate
improvement request and we can look at exposing
WSS4J's ignored-rules list.
> Conformance to WS-I Basic Security Profile
> ------------------------------------------
>
> Key: RAMPART-463
> URL: https://issues.apache.org/jira/browse/RAMPART-463
> Project: Rampart
> Issue Type: Question
> Components: rampart-core
> Affects Versions: 2.0.0
> Reporter: Andreas Martens
> Priority: Major
>
> Does Rampart prioritise Basic Security Profile Version 1.1 over WS-Security
> 1.1?
> Loaded question.
> On the Rampart homepage it says
> {quote}Rampart implements the following specifications:
> {quote} *
> {quote}WS - Security 1.0{quote}
> *
> {quote}WS - Security 1.1{quote}
> *
> {quote}WS - Secure Conversation - February 2005{quote}
> *
> {quote}WS - Security Policy - 1.1 - July 2005{quote}
> *
> {quote}WS - Security Policy - 1.2{quote}
> *
> {quote}WS - Trust - February 2005{quote}
> *
> {quote}WS - Trust - WS-SX specification{quote}
> *
> {quote}SAML Specification - 1.1{quote}
> *
> {quote}SAML Specification - 2.0{quote}
> But!
> Try to put in a message that conforms to WS-Security UsernameToken Profile
> 1.1
> [https://docs.oasis-open.org/wss/v1.1/wss-v1.1-spec-pr-UsernameTokenProfile-01.htm,]
> which explicitly states:
> {quote}/wsse:UsernameToken/wsse:Password/@Type
> This optional URI attribute specifies the type of password being provided.
> The table below identifies the pre-defined types (note that the URI fragments
> are relative to the URI for this specification).
> {quote}
> if we don't include the Type in the header, Rampart raises a Fault,
> explicitly mentioning
> {quote}R4201 Any PASSWORD MUST specify a Type attribute.
> {quote}
> Which is a requirement from Basic Security Profile Version 1.1
> ([https://www.ws-i.org/profiles/basicsecurityprofile-1.1.html#Password).]
>
> Normally I'd be fine with it, but we've received complaints :(
> Can we have clarification whether this is _intended_ behaviour?
>
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]