Skip to Content.
Sympa Menu

mace-opensaml-users - Base64 encoding exception

Subject: OpenSAML user discussion

List archive

Base64 encoding exception


Chronological Thread 
  • From: "Richard Gundersen" <>
  • To:
  • Subject: Base64 encoding exception
  • Date: Mon, 03 May 2004 22:47:58 +0100

Hi

I've been having fun getting to grips with SAML and conceptually it seems great - I think I might even be able to ditch Kerberos (!!)

However, I've come up against my first stumbling block and was wondering if somebody could give me a nudge in the right direction. Basically, I generate my first response, encode it to base64 using the method in the POSTProfile class, and the relying site cannot decode it. I've done a couple of tests and what follows is the plain text version of the response, followed by what toBase64() returns, and finally the base64 encoding that I *believe* is correct (this is just encoded using an online converter I found)

Is there something obvious anybody more familiar with SAML could point out to me? Really appreciate it if you can!

Regards

Richard (PS response is below:)


## Plain Text ##
<Response xmlns="urn:oasis:names:tc:SAML:1.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol" IssueInstant="2004-05-03T21:33:38Z" MajorVersion="1" MinorVersion="1" Recipient="http://localhost:8080/acme/main.jsp"; ResponseID="b588975ce9300181081b636a96e98eaf"><Status><StatusCode Value="samlp:Success"></StatusCode></Status><Assertion xmlns="urn:oasis:names:tc:SAML:1.0:assertion" AssertionID="c043ca81f795223b6d6be47778f1bd95" IssueInstant="2004-05-03T21:33:38Z" Issuer="http://localhost:8080/acme/main.jsp"; MajorVersion="1" MinorVersion="1"><Conditions NotBefore="2004-05-03T21:33:38Z" NotOnOrAfter="2004-05-03T21:38:38Z"><AudienceRestrictionCondition><Audience>http://localhost:8080/acme/main.jsp</Audience></AudienceRestrictionCondition></Conditions><AuthenticationStatement AuthenticationInstant="2004-05-03T21:33:38Z" AuthenticationMethod="foo"><Subject><SubjectConfirmation><ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:bearer</ConfirmationMethod></SubjectConfirmation></Subject><SubjectLocality IPAddress="127.0.0.1"></SubjectLocality></AuthenticationStatement></Assertion></Response>

## Result of PO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pZW5jZT5odHRwOi8vbG9jYWxob3N0OjgwODAvYWlydG91cnMvbWFpbi5qc3A8L0F1ZGllbmNlPjwvQXVkaWVuY2VSZXN0cmljdGlvbkNvbmRpdGlvbj48L0NvbmRpdGlvbnM+PEF1dGhlbnRpY2F0aW9uU3RhdGVtZW50IEF1dGhlbnRpY2F0aW9uSW5zdGFudD1cIjIwMDQtMDUtMDNUMjE6MzM6MzhaXCIgQXV0aGVudGljYXRpb25NZXRob2Q9XCJmb29cIj48U3ViamVjdD48U3ViamVjdENvbmZpcm1hdGlvbj48Q29uZmlybWF0aW9uTWV0aG9kPnVybjpvYXNpczpuYW1lczp0YzpTQU1MOjEuMDpjbTpiZWFyZXI8L0NvbmZpcm1hdGlvbk1ldGhvZD48L1N1YmplY3RDb25maXJtYXRpb24+PC9TdWJqZWN0PjxTdWJqZWN0TG9jYWxpdHkgSVBBZGRyZXNzPVwiMTI3LjAuMC4xXCI+PC9TdWJqZWN0TG9jYWxpdHk+PC9BdXRoZW50aWNhdGlvblN0YXRlbWVudD48L0Fzc2VydGlvbj48L1Jlc3BvbnNlPg==

_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger




Archive powered by MHonArc 2.6.16.

Top of Page