Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 869 Bytes

File metadata and controls

26 lines (19 loc) · 869 Bytes

Integrating the GitHub Provider

Example

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

            // Optional domain name for GitHub Enterprise on-premises deployments
            options.EnterpriseDomain = "github.corp.local";
        });

Required Additional Settings

None.

Optional Settings

Property Name Property Type Description Default Value
EnterpriseDomain string? The domain name to use for a GitHub Enterprise on-premises deployment. null
UserEmailsEndpoint string The address of the endpoint exposing the email addresses associated with the logged in user. GitHubAuthenticationDefaults.UserEmailsEndpoint