none
OWIN token authentication with social logins RRS feed

  • Question

  • I am after some guidance.  I have set-up my ASP.NET C# OWIN MVC application to authenticate using JWT tokens.  I used the IAppBuilder extension UseOAuthAuthorizationServer to create an endpoint for issuing tokens to users.  Everything works correctly - when a correct username and password combination is posted to this endpoint a JWT token is generated and returned.

    I now want to extend this functionality to social account logins.  I want my users to be able to authenticate using Facebook and to issue a local JWT token for them once they are successfully returned from the Facebook authentication.  I can't use the endpoint being used for local accounts because it requires a username/password combination post - which I don't have for users who have authenticated using Facebook.  So, my essential question is - how do I generate a local JWT token for users authenticated using external social logins?

    • Moved by CoolDadTx Tuesday, July 17, 2018 3:09 PM ASP.NET related
    Tuesday, July 17, 2018 5:15 AM

All replies

  • ASP.NET C# OWIN MVC

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/df14dc5f-982b-4676-b767-6123c8a90495/where-is-the-correct-place-to-make-posts-regarding-aspnet-mvc-webapi-and-core-sql-or-another?forum=csharpgeneral


    Tuesday, July 17, 2018 6:25 AM
  • Please post questions related to ASP.NET in the ASP.NET forums.

    Michael Taylor http://www.michaeltaylorp3.net

    Tuesday, July 17, 2018 3:09 PM