Open mt-akar opened 2 years ago
Oh - I've always had the token and base the same url - and worked the same - so you 'can' host the token URL away from the angular url? OK - I'm trying to use the token based stuff outside the angular env at the moment, (separate API solution with a diff URL to separate it from the angular app - and I wanted to use the APIs URL... but it broke the angular stuff... Nice, I think you have solved my problem.
I noticed that even though I set the token URL in the environment file, it didn't take effect. I traced the problem and found that it is caused by a small oversight in the
oidc-helper.service.ts
file. Currently, the token URL was always set to the base URL. This change fixes that. The Oidc service now uses the token URL from the environment file.This problem is likely caused by the fact that this project template wasn't sufficiently tested with different base and token URLs.