public void Configure(string name, GCCollabOptions options) { // Ignore OpenID Connect client handler instances that don't correspond to the instance managed by the OpenID module. if (!string.Equals(name, GCCollabDefaults.AuthenticationScheme)) { return; } var loginSettings = GetGCCollabAuthenticationSettingsAsync().GetAwaiter().GetResult(); options.ClientId = loginSettings?.ClientID ?? string.Empty; try { options.ClientSecret = _dataProtectionProvider.CreateProtector(GCCollabConstants.Features.GCCollabAuthentication).Unprotect(loginSettings.ClientSecret); } catch { _logger.LogError("The GCCollab client secret key could not be decrypted. It may have been encrypted using a different key."); } if (loginSettings.CallbackPath.HasValue) { options.CallbackPath = loginSettings.CallbackPath; } }
public void Configure(GCCollabOptions options) => Debug.Fail("This infrastructure method shouldn't be called.");