December 2017

C# .NET SSO Convert to PHP : UrlTokenDecode(), UrlTokenEncode(), PBKDF2

While implementing Absorb SSO into a Drupal CANVAS site, I needed to generate a key from a URL $_GET token variable which is generated by Absorb's proprietary SSO. When a user is directed to, Absorb sends them back to your standard domain with a login token. For example,

The documentation only showed how to accomplish this C#.

C# example

string idAndKey = "" + "7MpszrQpO95p7H";