WCF authentication user google / facebook etc.

I want to create a SOA application that will consist of the main WCF service. Front end of ASP.NET Webforms. And maybe a few mobile front ends.

I would like to allow my users to log in with their Facebook / Google credentials, which is pretty simple for the ASP.NET Webforms application these days. However, I would also like mobile applications to authenticate using the same credentials.

To achieve this, I expect that every call to the WCF service should use a similar claims-based approach to authentication.

After working for several hours, I was wondering if someone could point me to a tutorial that demonstrates how to create / configure a WCF service to work specifically with Facebook / Google authentication.

Thanks david

+4
source share
2 answers

Suggest reviewing Google Accounts Authentication and Authorizationthat uses the standard OAuth 2.0. The following link describes how to use the Google APIs to authenticate a web server application with OAuth 2.0.

, URL- Google; URL , . , Google , . , Google .

https://developers.google.com/accounts/docs/OAuth2WebServer

API Google OAuth 2.0, , -, .

OAuth 2.0 - . OAuth 2.0 Google Developers Console. Google Server, API Google, .

https://developers.google.com/accounts/docs/OAuth2

API Google .NET : https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth

+2

, http://fbconnectauth.codeplex.com/

Facebook Connect Authentication ASP.NET - , - ASP.NET , - -, Facebook Connect.

#, .NET 2.0.

facebook.

+1

Source: https://habr.com/ru/post/1570474/


All Articles