Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 969 Bytes

File metadata and controls

28 lines (21 loc) · 969 Bytes

Integrating the Xero Provider

Example

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

            // Optionally specify additional scopes, if needed
            options.Scope.Add("profile");
            options.Scope.Add("email");
        });

Required Additional Settings

None.

Optional Settings

Property Name Property Type Description Default Value
ConfigurationManager IConfigurationManager<OpenIdConnectConfiguration>? The configuration manager to use for the OpenId configuration. null
SecurityTokenHandler JsonWebTokenHandler? The JSON Web Token handler to use. null
TokenValidationParameters TokenValidationParameters The JSON Web Token validation parameter to use. new TokenValidationParameters()