angularopenid-connectangular-oauth2-oidc

Disable TLS in angular-oauth2-oidc


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?


Solution

  • 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