mace-opensaml-users - Re: Bug report: SAML11b / Subject
Subject: OpenSAML user discussion
List archive
- From: "Cristian Opincaru" <>
- To: "Tom Scavo" <>
- Cc:
- Subject: Re: Bug report: SAML11b / Subject
- Date: Tue, 31 Oct 2006 15:16:43 +0100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=OCaJnEzZo4l5QHu0jukMNPKskZ9Pnj9NU+sgR2IOJ1yfrGwycLaFJPXJX43DSkvd+QxBiuUVOTNElkwFrtmxmc857vBoZ9GXR1oRnvUsBKL9ps/t1bUS6Ggb+FAzdPjxpO1S2cYMgnDDl3L/mhi257HNKGAJk2USmhCyKUVvjII=
If you tell me how, I will do it.
On 10/31/06, Tom Scavo <> wrote:
Cristian, this is good. Are you going to report this bug in bugzilla?
Cheers,
Tom
On 10/31/06, Cristian Opincaru <> wrote:
> Hi,
>
> When reconstructing a SAML Subject from DOM, the subject is invalid if does
> not have a Named Subject. However, the standards says that it must have at
> least one of NamedIdentifier, ConfirmationMethod.
>
> I fixed this (added the 2 lines in red in fromDOM), and attached the new
> file. Hope this helps!
>
> -----
> public void fromDOM(Element e) throws SAMLException {
> super.fromDOM(e);
>
> if
> (config.getBooleanProperty("org.opensaml.strict-dom-checking")
> && !XML.isElementNamed(e, XML.SAML_NS,"Subject"))
> throw new MalformedException(" SAMLSubject.fromDOM() requires
> saml:Subject at root");
>
> // Look for NameIdentifier.
> Element n = XML.getFirstChildElement (e, XML.SAML_NS,
> "NameIdentifier");
> if (n != null) {
> nameId =
> (SAMLNameIdentifier)SAMLNameIdentifier.getInstance(n).setParent(this);
> n = XML.getNextSiblingElement(n);
> } else
> n = XML.getFirstChildElement(e, XML.SAML_NS,
> "SubjectConfirmation");
>
> // Look for SubjectConfirmation.
> if (n != null && XML.isElementNamed(n, XML.SAML_NS,
> "SubjectConfirmation")) {
> // Iterate over ConfirmationMethods.
> Element n2 = XML.getFirstChildElement(n);
> while (n2 != null && XML.isElementNamed(n2, XML.SAML_NS,
> "ConfirmationMethod") && n2.hasChildNodes()) {
> ....
> -----
>
> Cheers,
> Cristian
>
> --
> Cristian OPINCARU
> University of the Federal Armed Forces Munich
> http://www.unibw.de/cristian.opincaru
>
--
Cristian OPINCARU
University of the Federal Armed Forces Munich
http://www.unibw.de/cristian.opincaru
- Bug report: SAML11b / Subject, Cristian Opincaru, 10/31/2006
- Re: Bug report: SAML11b / Subject, Tom Scavo, 10/31/2006
- Re: Bug report: SAML11b / Subject, Cristian Opincaru, 10/31/2006
- Re: Bug report: SAML11b / Subject, Tom Scavo, 10/31/2006
- Re: Bug report: SAML11b / Subject, Cristian Opincaru, 10/31/2006
- RE: Bug report: SAML11b / Subject, Scott Cantor, 10/31/2006
- RE: Bug report: SAML11b / Subject, Scott Cantor, 10/31/2006
- Re: Bug report: SAML11b / Subject, Tom Scavo, 10/31/2006
- RE: Bug report: SAML11b / Subject, Scott Cantor, 10/31/2006
- Re: Bug report: SAML11b / Subject, Tom Scavo, 10/31/2006
- RE: Bug report: SAML11b / Subject, Scott Cantor, 10/31/2006
- Re: Bug report: SAML11b / Subject, Tom Scavo, 10/31/2006
- Re: Bug report: SAML11b / Subject, Tom Scavo, 10/31/2006
Archive powered by MHonArc 2.6.16.