Whenever a call is made to a RelyingParty, DotNetOpenAuth gives a redirect (as expected). This looks something like this ...
return request.RedirectingResponse.AsActionResult();
This works alright - but I'd like to catch it and put it in a dialog, not redirect the existing page. Is there any way to do this? I'm trying to use jQuery UI Dialog with $.post in jquery, and loading the content on the success function - but it keeps redirecting anyway.
$("#openIdForm").submit(function () {
$.post({
// Basic ajax request properties
url: 'user/LogOn',
data: $('#openIdForm').serialize(),
success: function (objResponse) {
// It's ignoring me! :(
$('#dialog').load(objResponse).dialog('open');
}
})
});
I'm finally starting to get many of the pieces together, and I'm really liking DotNetOpenAuth since I solved the initial startup problems.