asp.net mvc 5 - Why does my site redirect back to the Login screen when I click an external provider button? -


i'm upgrading asp.net mvc4 site mvc5, , implementing new owin authentication methods in process.

i've copied on action methods account controller on blank mvc5 project.

the problem is, when click external provider button (e.g. google) redirected login page again. second time click it, taken google account page, browser gets redirected account/external login page.

what's going on?

check <authentication> element in web.config file. still saying

<authentication mode="forms"> 

changing <authentication mode="none"> should fix problem.

for measure, remove formsauthentication module webserver modules section:

<system.webserver>   <modules>      <remove name="formsauthentication" />    </modules> </system.webserver> 

the problem formsauthentication module looks out responses 401 (unauthorised) code , changes them redirect request login page.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -