Encode/Decode AuthnRequestXML

Day, Peter W peter.day at emory.edu
Thu Jul 18 19:16:44 EDT 2013


Jim,

For debugging and tracing interactions with Shib IdP and SP, I find the following tools useful:


*         https://rnd.feide.no/simplesaml/module.php/saml2debug/debug.php  - Decodes into plain text xml a SAML2 request copied from a redirect or post. Can handle url & base64 encodings.

*         https://addons.mozilla.org/en-US/firefox/addon/saml-tracer/  - A tool for viewing SAML messages sent through the browser

Peter Day

From: users-bounces at shibboleth.net [mailto:users-bounces at shibboleth.net] On Behalf Of Jim Hoy
Sent: Thursday, July 18, 2013 3:55 PM
To: Shib Users
Subject: Encode/Decode AuthnRequestXML

I'm trying to programmatically encode and decode AuthnRequest XML. Which technologies are used and what steps would I follow to do this? If I understand correctly, the typical process goes like this:

To encode:

1. Convert XML to byte stream
2. Compress the byte stream
3. Base64 encode the compressed stream
4. UrlEncode the Base64 string

To decode:

1. UrlDecode the string
2. Base64 Decode the UrlDecoded string
3. Decompress the Base64
4. Convert the byte stream to XML

When I try to decode the AuthnRequest that we are passing to an IDP, I don't get anything usable.  I've tried GZip and .Net's  DeflateStream.  Do I have the encoding and decoding process corrent?  What compression does shib use?  Is the XML signed with a cert?

________________________________

This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/users/attachments/20130718/2b1e6d89/attachment.html 


More information about the users mailing list