disable AskUser in OpenId Provider

I create OpenId Provider by DotNetOpenAuth Library.

I use OpenIdProviderMvc project that found on sample of DotNetOpenAuth and customized it.

Now I have 2 question:

  • How can I remove AskUser step?
  • How can i signout in provider after response to RP?

Answers


Skipping the ask user step is as easy as changing the OpenIdController.ProcessAuthRequest method so that instead of redirecting to the AskUser action, it always (effectively) follows the path as if AutoRespondIfPossible returned true.

You can effectively sign the user out "after" response to RP by clearing the cookie in the same redirect instruction to the browser. So before returning from the ProcessAuthRequest method, try:

FormsAuthentication.SignOut();

If that doesn't work, you may have to do the cookie manipulation yourself as described in this question.


Need Your Help

Why does a cross-origin HEAD request need a preflight check?

cross-domain cors http-method preflight

I was reading the spec on CORS requests, and I found this about preflight requests:

Creating a simple form

weblogic oracle-adf jdeveloper

I am looking for some tutorials on creating a simple form using Oracle ADF and JDeveloper. I am not able to find any relevant materials on the internet.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.