Integrating the Amazon Provider

July 11, 2020 ยท View on GitHub

Example

services.AddAuthentication(options => /* Auth configuration */)
        .AddAmazon(options =>
        {
            options.ClientId = "my-client-id";
            options.ClientSecret = "my-client-secret";

            // Optionally request the user's postal code, if needed
            options.Scope.Add("postal_code");
            options.Fields.Add("postal_code");
        });

Required Additional Settings

None.

Optional Settings

Property NameProperty TypeDescriptionDefault Value
FieldsISet<string>The fields of the user's profile to return.[ "email", "name", "user_id" ]