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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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
AutoRespondIfPossiblereturned 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
ProcessAuthRequestmethod, try:If that doesn’t work, you may have to do the cookie manipulation yourself as described in this question.