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 https://yourabsorbsite.myabsorb.com/account/externallogin, Absorb sends them back to your standard domain with a login token. For example, https://mydomain.com?token=MqsXexqpYRUNAH...

The documentation only showed how to accomplish this C#.

C# example

string idAndKey = "bob@company.com" + "7MpszrQpO95p7H";