DotNetOpenID in iFrame

I was wondering if it is possible to make a RedirectToProvider and get the OpenID provider page presented in iFrame. This will make the authentication flow more streamlined.

I am using the DotNetOpenID library in ASP.NET MVC (VB).

This next part is a kind of separate issue, but related.

I use Ajax.BeginForm for the OpenID login form, but somehow RedirectToProvider fails. DotNetOpenId not working with MVC and AJAX?

+3
source share
2 answers

, DotNetOpenId iframe, MVC Ajax. OpenIdAjaxTextBox, , . iframes -. checkid_immediate - , iframe-, OpenID .

IAuthenticationRequest.RedirectToProvider ASP.NET Response.Redirect, ThreadAbortException, , , , , , , , , , , .

, , , , iframe. , RP iframe , , EFraim, , . : Clickjacking , , , OP, URL- RP , .

, OPs , iframe, , , , , , , ' t .

, , , , . DotNetOpenId. ASP.NET, , . ASP.NET MVC ( ), :

  • "" , POSTing , Javascript, URL-, http://yoursite.com/openid/redirect?id= userSuppliedIdentifier.

  • Redirect OpenID , OpenIdRelyingParty.CreateRequest return IAuthenticationRequest.RedirectingResponse.AsActionResult() ( MVC). , URL- CreateRequest URL- returnTo, , OP OpenID.

  • , javascript, , ( ) , .

ASP.NET, DotNetOpenId. , ASP.NET MVC , - ASP.NET, . , MVC, DotNetOpenId, , , . , .

+3

, OpenID ? IFrame, , , . . , OpenID IFrame . , , , . ? , , .

+2

Source: https://habr.com/ru/post/1716426/


All Articles