[
https://issues.apache.org/jira/browse/RAMPART-349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Lazarski resolved RAMPART-349.
-------------------------------------
Resolution: Fixed
The NameID has been attached to the SAML 2.0 holder-of-key subject since the
March 2012 refactoring of SAML2TokenIssuer, so
the bug itself was fixed long ago. The attached patch targeted the December
2011 code, where the subject and the key
material were built in one method; the March 2012 refactoring split that
method and added the same NameID check to the
holder-of-key subject for both key types, which is why the patch no longer
lines up with the current source.
The remaining question about the Format is addressed on master in 4604cf2a:
the SAMLCallbackHandler configured with
dataCallbackHandlerClass now receives a SAMLNameIdentifierCallback for every
subject in both the SAML 1.1 and SAML 2.0
issuers and can set the NameID value and Format, with setSAML2NameID for SAML
2.0. Without a handler the principal name in
the email address format is used as before. Documented in the STS setup page.
Will ship in 2.0.0.
> In SAML2 token, subject's NameID is not attached to the subject when HOK SC
> is used with key type:SymmetricKey
> ---------------------------------------------------------------------------------------------------------------
>
> Key: RAMPART-349
> URL: https://issues.apache.org/jira/browse/RAMPART-349
> Project: Rampart
> Issue Type: Bug
> Environment: When creating Subject element with Holder of Key Subject
> Confirmation method and when Symmetric Key is given as the key type, NameID
> of the subject is not created and attached to the subject.
> Reporter: Hasini Gunasinghe
> Assignee: Robert Lazarski
> Priority: Major
> Fix For: 2.0.0
>
> Attachments: RAMPART-349.patch
>
>
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]