Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

25 wiersze
1.0KB

  1. namespace Campaign_Tracker.Server.Authentication;
  2. public sealed class KeycloakOptions
  3. {
  4. public const string SectionName = "Keycloak";
  5. public string Authority { get; init; } = "http://localhost:8180/realms/KCI";
  6. public string? MetadataAddress { get; init; }
  7. public string? ValidIssuer { get; init; }
  8. public string PublicAuthority { get; init; } = "http://kci-app01.ntp.kentcommunications.com:8180/realms/KCI";
  9. public string ClientId { get; init; } = "canopy-web";
  10. public string? ClientSecret { get; init; }
  11. public string? Audience { get; init; }
  12. public bool DisableHttpsMetadata { get; init; } = true;
  13. public string? TestSigningKey { get; init; }
  14. public string TokenAudience => string.IsNullOrWhiteSpace(Audience) ? ClientId : Audience;
  15. public string TokenIssuer =>
  16. string.IsNullOrWhiteSpace(ValidIssuer) ? PublicAuthority : ValidIssuer;
  17. public string TokenEndpointAuthority =>
  18. string.IsNullOrWhiteSpace(PublicAuthority) ? Authority : PublicAuthority;
  19. }

Powered by TurnKey Linux.