IdentityModel.OidcClient.Samples
IdentityModel.OidcClient.Samples copied to clipboard
Self signed certificates
For development purposes I am running KeyCloak as a container. I use vagrant to create the world so the Identity Provider (KeyCloak) is known to me as keycloak.l2.ucnit.eu (192.168.11.2). I have provided it with self signed certificates and that part works fine verifying with Postman. However during the LoginAsync I get the error AuthenticationException: The remote certificate does not meet the validation (translated - guessing you are not that fluent in danish) How can I tell OidcClient to accept a self signed certificate? I am surely not going to get a real certificate for a private network IP.
There is a backchanel handler or client property on the options. There you can configure the client used for backchannel requests..