45 thoughts on “ASP NET Web API google authentication

  1. Install-Package Microsoft.Owin.Security.Google -Version 2.1.0
    Install-Package Microsoft.Owin.Security.Google -Version 2.1.0
    Install-Package Microsoft.Owin.Security.Google -Version 2.1.0

    Install-Package Microsoft.Owin.Security.Google -Version 2.1.0

    Install-Package Microsoft.Owin.Security.Google -Version 2.1.0

    Install-Package Microsoft.Owin.Security.Google -Version 2.1.0

    Install-Package Microsoft.Owin.Security.Google -Version 2.1.0

    Install-Package Microsoft.Owin.Security.Google -Version 2.1.0

    <<never forget that >>

  2. http://localhost:53946/Login.html#access_token=WS7Yi23PKN0F_XTaMJqYaSxV7O-jz5tASrwhfvBz47hVVmRpcZ9vYukE15eNLomJ2b2OuTRIGR-GVfrc9gUAAvxke4c_4ngjUFwtk1L5kHWPkHh3xYtqTqipnjlqASph5GOUF63YCUqXISekacG-1YY8RIsiihXIwydb7A0nQCrVyIaum0Yaw50irR64CvOZ2EjpwTzbyw6QLc1s0iH3YNRDTANgq4YsHiUgbix_YL4sYB9p9hZ0ERWd6HsEDwuKblCMB4rY5tObvTVxFZHrjn2ktDXKVtMRWMbJ9sDoWpU2vFHcIY8f0Zo5bpMet-g3aSDCMjPE7BLstkd2TPHea_poPxMvqZIIa9elM_5FsQY&token_type=bearer&expires_in=36000&state=0L7ob70RbOzO1IQoN6Y4m6lsUFow_mtJAenMrZkK
    not getting Logged in using gmail it waits and then change the URL to the above

  3. Hello Venkat, Can you please help us on error: access_denied in the URL after logging in from google.
    After redirecting to signin-google link, i have enabled the fiddler i see the response header as below.
    Location: http://localhost:60008/api/Account/ExternalLogin?provider=Google&response_type=token&client_id=self&redirect_uri=http%3A%2F%2Flocalhost%3A60008%2FLogin.html&state=34FDtwcEJXUbwFqRhGjsnPzhxlZyu68RE-kmFECB03Y1&error=access_denied

    That means, Signin-google is returning error=access_denied
    in the query string as the response in Transport Header

    I tried to find the solution in google, but i don't find any fix which helps me. I think, this is only with latest VS 2017 Web API project.

    Please help me.

  4. Hello, Most of us have been having issues when we add api/Account/ExternalLogins?returnUrl=%2F&generateState=true to our link… It is not working… We would love if you have a fix to this problem

  5. For those who get 404 error, I also got the same error. If you see at the bottom of the browser there is warning ' Do you want to open or save ExternalLogins.json (165 bytes) from the localhost?'. Click on Open button to open this file and you will find the url information there.

  6. Hello Mr Kudvenkat your videos are very very accurate, consistent and helpful. Could you please make a tutorial on AZURE, AWS, react and node.js if possible

  7. api/Account/ExternalLogins?returnUrl=%2F&generateState=true is not working please help us with the solution as many of us have been facing the same kind of problem.

  8. Great video. I observed one issue. When we logout from Data.html page and again click on Login with Google, it directly takes us to Data.html page without the need to re-enter the google credentials. It seems that when we logout from Data.html page, our 'accessToken' is cleared from the browser, however our google account is still logged in. So when we again click on Login with Google, the code "window.location.href = "/api/Account/ExternalLogin?provider=Google&response_type= . . ." still fetches us the url with token and the code redirects us to Data.html.
    Can you please guide us how to fix this..

  9. When i am calling api/Account/ExternalLogins?returnUrl=%2F&generateState=true. i am getting "No HTTP resource was found that matches the request URI". can anyone please tell me what i did wrong

  10. Hello sir, Thank you so much for this video,It is working really well for me when I am running it on localhost but its not working when I uploaded my website on web server(When i am clicking on Login with Google it is redirecting me to the index page).What should i do??

  11. hi. i am great fan of your programing.i have some issue to add goolge analytic to add in my admin page.kindly make a video how to add google analytic graph in my admin panel.thankx

  12. what to do if i have two seperate projects inside one folder i.e. one is WEB API project and other is normal MVC project through which i call the web API….. i'm getting confused …

Leave a Reply

Your email address will not be published. Required fields are marked *