TroyGoode/EngageNet — pull request #2 by fschwiet (2012-04-01 04:39:22+00:00)
Title: changes for token_url flexibility

Hi Troy, thanks again for making your code available on github and now nuget, it made it easy to get going to Janrain Engage.

I ran into an issue though getting it to work with forms authentication. I wanted to use the "AuthorizeAttribute", which will redirect unauthorized users to the login page, with the ReturnUrl querystring parameter. The user is redirected to ReturnUrl after logging in successfully. To make this work with EngageNet, I needed to include this querystring parameter in the token_url passed to engage.

Do these changes look alright? They worked for me :) I did update both the inline and non-line version, though I only used the inline version. If you have other thoughts on how to approach this, let me know.