Search code examples
asp.netfacebook-graph-apiasp.net-web-apiasp.net-core-2.0openiddict

ASP.NET Core 2.0 OpenIdDict with Facebook mobile application


Could you please provide me an example or description how to return an access token to the mobile application with facebook login.

Here is the workflow that I want to achieve:

  1. Mobile user registers via Facebook
  2. User is registered on the server database after successful Facebook login
  3. OpenIdDict Access Token is returned from server to the mobile application

I have already implemented local user password workflow but cannot find any example of Facebook login via mobile app.


Solution

  • The flow you describe is known as the "assertion grant". Read this other SO thread for more information about how to implement it with OpenIddict.