Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 908 Bytes

File metadata and controls

26 lines (19 loc) · 908 Bytes

Integrating the Lichess Provider

Example

services.AddAuthentication(options => /* Auth configuration */)
        .AddLichess(options =>
        {
            options.ClientId = "my-client-id";
            options.ClientSecret = "my-client-secret";
			
            options.Scope.Clear();
            options.Scope.Add(LichessAuthenticationConstants.Scopes.EmailRead);
        });

Required Additional Settings

None.

Optional Settings

Property Name Property Type Description Default Value
Scope ICollection<string> The scope(s) you want to use on Lichess, see documentation.
UserEmailsEndpoint string The address of the endpoint exposing the email addresses associated with the logged in user. LichessAuthenticationDefaults.UserEmailsEndpoint