lvermeulen / Keycloak.Net

C# client for Keycloak 6.x
MIT License
203 stars 120 forks source link

No proper error message #54

Closed pankyopkey closed 3 years ago

pankyopkey commented 3 years ago

I am getting the following error when trying to GetUsers. Is this due to some missing configuration in Keycloak server?

image

pankyopkey commented 3 years ago

Problem was that this server was using https scheme, therefore I had to add the following line to enable TLS

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;

Further, in Keycloak.Net.Common.Extensions.FlurlRequestExtensions class, the client ID is hardcoded which is required to get the token.