Answered by:
How to let OAuth2 webiste user account login my Website ?

Question
-
User1735516446 posted
I find it's easy to let Twitter,Facebook,Google and microsoftAccount external login by OAuth2, only uncomment the following lines like this :
app.UseCookieAuthentication(new CookieAuthenticationOptions { AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie, LoginPath = new PathString("/Account/Login") }); app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie); // Uncomment the following lines to enable logging in with third party login providers app.UseMicrosoftAccountAuthentication( clientId: "0dd000******************", clientSecret: "BsW****************"); app.UseTwitterAuthentication( consumerKey: "**", consumerSecret: "**"); //app.UseFacebookAuthentication( // appId: "", // appSecret: ""); //app.UseGoogleAuthentication();
But how to let other website users login my website though Oauth2? the website have provide Oauth2 and it can provide Web API like :https://graph.qq.com/oauth2.0/token?grant_type=authorization_code&client_id=[YOUR_APP_ID]&client_secret=[YOUR_APP_Key]&code=[The_AUTHORIZATION_CODE]&state=[The_CLIENT_STATE]&redirect_uri=[YOUR_REDIRECT_URI] return : access_token=YOUR_ACCESS_TOKEN&expires_in=3600
Sunday, November 9, 2014 5:07 AM
Answers
-
User71929859 posted
But how to let other website users login my website though Oauth2? the website have provide Oauth2 and it can provide Web API like :https://graph.qq.com/oauth2.0/token?grant_type=authorization_code&client_id=[YOUR_APP_ID]&client_secret=[YOUR_APP_Key]&code=[The_AUTHORIZATION_CODE]&state=[The_CLIENT_STATE]&redirect_uri=[YOUR_REDIRECT_URI] return : access_token=YOUR_ACCESS_TOKEN&expires_in=3600I think below is what you are looking for?
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, November 11, 2014 7:41 PM
All replies
-
User71929859 posted
But how to let other website users login my website though Oauth2? the website have provide Oauth2 and it can provide Web API like :https://graph.qq.com/oauth2.0/token?grant_type=authorization_code&client_id=[YOUR_APP_ID]&client_secret=[YOUR_APP_Key]&code=[The_AUTHORIZATION_CODE]&state=[The_CLIENT_STATE]&redirect_uri=[YOUR_REDIRECT_URI] return : access_token=YOUR_ACCESS_TOKEN&expires_in=3600I think below is what you are looking for?
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, November 11, 2014 7:41 PM -
User1735516446 posted
This is just what I'm looking for serveral day! I could study this post and try as it says. Thank you very much! I think this must can solve my problem.
Friday, November 14, 2014 11:13 PM -
User1735516446 posted
I have study your suggestion form some week . I cant understand the article very well. Can you show me some article else?
Friday, December 5, 2014 11:24 PM