2014年6月4日 星期三

OAuth Authentication by external sign in

OAuth authentication by Google Login

image

 

1. Use CookieAuthentication, passing in different CookieAuthenticationOptions

2. Use ExternalSignInCookie, for example, GoogleAuthentication

image

3. Locate to ExternalLoginCallback() in AccountController.cs

4. await AuthenticationManager.AuthenticateAsync()

5. Put break-point and run the application, to see the result and email from google login

image

沒有留言:

張貼留言