How to implement Janrain Engage in ASP.NET / C#?
문제
I can't figure out where the C# helper class goes in my project (using VS2010). I'm following the tutorial at https://sites.google.com/a/janrain.com/developers/articles/engage-tutorial but it's in PHP. In this context, is "rpx.php" analogous to "rpx.aspx", "rpx.aspx.cs", or "rpx.cs"? Know what I mean?
Or, does anyone know of a C# Janrain tutorial/example? That would keep me from posting my next dozen questions. Thanks in advance!
해결책
The php
file will be most closely analogous to the code behind file rpx.aspx.cs
.
Though, in the .NET world, both the .aspx
and the .aspx.cs
files are closely related.
다른 팁
In this case, you would create an rpx.aspx page which would then handle the process in the code-behind.
However, since you are using VS.NET 2010 (and therefore, ASP.NET 4), There are two things I'd recommend, either creating an IHttpHandler
implementation or using Routing in ASP.NET to create a "pretty" URL that links to an ASPX page.
Either way, you would handle the callback from Janrain in your IHttpHandler
/ASPX page, verifying the token and then redirecting to an appropriate page.