TodoApi icon indicating copy to clipboard operation
TodoApi copied to clipboard

Add support for social authentication

Open davidfowl opened this issue 3 years ago • 0 comments

This change adds support for creating users from social accounts. Those accounts are registered with the backend API in exchange for a JWT token. That token can then be used to make further API calls.

Configuration for these providers must be added in configuration with the following schema:

{
    "Authentication": {
        "Schemes": {
            "<scheme>": {
                "ClientId": "xxx",
                "ClientSecret": "xxxx"
            }
        }
    }
}

The client id and client secret must be specified, or it will fail. This support is built on top of ASP.NET Core's OAuthAuthenticationHandler. Other providers can be found here https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers#providers

davidfowl avatar Dec 02 '22 09:12 davidfowl