QuickApp icon indicating copy to clipboard operation
QuickApp copied to clipboard

Correctly set the token URL in the Oidc service

Open mt-akar opened this issue 3 years ago • 1 comments

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.

mt-akar avatar Mar 13 '22 04:03 mt-akar

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.

tonydrake avatar Mar 13 '22 04:03 tonydrake