Skip to main content

Posts

Showing posts from November, 2016

Implementing Oauth2.0 authorization for Google in asp.net

Download Source Code Introduction Now a days, security is a major concern for every service provider like Google, Yahoo, Microsoft etc. and that’s why every service provider which is providing some external service to another app is following the protocol defined by Oauth. I am going to describe here, how to implement google oauth in asp.net app. Prerequisites You should have basic knowledge of C# Asp.net Steps for implementing For implementing Oauth we will have to follow series of steps – Create a project on google console. Get the client id and client secret from the project. Writing code for authorizing the user by google. Writing code for exchanging the authorization code for refresh token. Writing code for exchanging refresh token for access token. Don’t worry about the above steps- i am going to explain these in details with demo. Let’s Start 1.Create a Project on Google console Goto https://console.developers.google.com and click on project -&g