• Post Reply Bookmark Topic Watch Topic
  • New Topic

Decode SAML Request  RSS feed

 
Ryan Loda
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First time poster, glad to be here, looks like an active community.

So I'm simply trying to decode a SAML Request from GoogleApps. From my understanding, the request is Deflated, Base 64 Encoded, and then URL Encoded. Taking that process in reverse, I'm able to bring it back to its deflated state but I cannot inflate it. After doing some research I have this code which results in a "incomplete dynamic bit lengths tree" error. Note: This is a ColdFusion project but since CF is Java based I can convert most Java into CF Script, so Java solutions are ok.



The value of URL.SAMLRequest (which CF already URLDecoded) is:



I know it is possible because if you take the SAMLRequest value and decode it at this site it works: https://rnd.feide.no/simplesaml/module.php/saml2debug/debug.php I've tried digging through the Shibboleth (Java based SAML library) source but cannot find the correct file. Any help/suggestions/comments are greatly appreciated. Thanks!
 
Ryan Loda
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FYI, I was able to get it working! The "ColdFusion way" of decoding Base 64 wasn't working right. And then I changed how Inflation was handled to avoid a byte limit. Here is the code that works for me, hope it helps others!

 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ryan,

Thanks for sharing the resolution. Welcome to the Ranch
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!