0

I am using angular-oauth2-oidc in my project. The Openid (identity) provider uses self signed certificate. The Identity provider is not in our control. When we configure the identity url and try login from angular we always get an error.

error loading discovery document

GET <<url>> net:: ERR_CERT_AUTHORITY_INVALID

When we check with Identity provider team, they suggest us to disable TLS and try. But I do not see any config to disable TLS in angular-oauth2-oidc

What could be the solution in such ccase?

Ashok Krishnamoorthy
  • 853
  • 2
  • 14
  • 24
  • 1
    It's not a thing that can be disabled on the javascript client-side. You can configure chrome to ignore certificate errors, or you can disable TLS in windows (those are very dangerous since it will be disabled for all invalid certificates) or you can add the certificate to the trusted publishers store In Windows. – Eldar Apr 06 '21 at 14:11
  • @Eldar Yes, I agree. I am adding this certificate in Mac as trusted certificate, instead of changing anything in the application. – Ashok Krishnamoorthy Apr 07 '21 at 13:51

1 Answers1

1

What you can do is to make your windows machine to trust the self-signed certificate. But this will only be on your machine.

See Make a Self-Signed Certificate Trusted On Windows

Tore Nestenius
  • 16,431
  • 5
  • 30
  • 40