Hello,
I'm scratching my head for few days now because of this error :
invalid issuer in discovery document – "expected: https://sub.domain.tld" – "current: http://sub.domain.tld"
The worst part is on my local dev machine all requests sent by Angular's app on https://sub.domain.tld/.well-known/openid-configuration are successful with a HTTP 200 code.
I don't understand what I'm doing wrong.
Any help would really be appreciated !
Cheers,
Did you spot the https (on "expected") vs http (on "current")?
Yes that was precisely the issue. I resolved my problem ! Fyi, I'm using IdentityServer4 as my Identity Provider, the issue was to add the option 'options.PublicOrigin = “https://sub.domain.tld“;' to change the default routes in /.well-known/openid-configuration which are 'http' and not 'https' because the .NET app is reverse-proxied.
Most helpful comment
Yes that was precisely the issue. I resolved my problem ! Fyi, I'm using IdentityServer4 as my Identity Provider, the issue was to add the option 'options.PublicOrigin = “https://sub.domain.tld“;' to change the default routes in /.well-known/openid-configuration which are 'http' and not 'https' because the .NET app is reverse-proxied.