IdentityModel.OidcClient.Samples icon indicating copy to clipboard operation
IdentityModel.OidcClient.Samples copied to clipboard

Self signed certificates

Open goldfingyr opened this issue 4 years ago • 1 comments
trafficstars

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.

goldfingyr avatar Nov 11 '21 13:11 goldfingyr

There is a backchanel handler or client property on the options. There you can configure the client used for backchannel requests..

leastprivilege avatar Nov 11 '21 13:11 leastprivilege