Hi,
This might be a question that has a trivial answer, but I'm new to Angular and OIDC.
In order to get a token, where do I specify the Authorization (in header of POST request), and grant_type, username and password (in POST request's body) in the code?
Thanks a lot for your support and for your work!
Hi @vicver82 , yes
First you login on the server, the SPA should not deal with user, passwords. A login button redirects you the the server where you login and then you're redirected back the the angular application where you have a token and an id_token.
Greetings Damien
Thank you for your reply @damienbod !
It turns out we are using Hybrid flow with OIDC, which is why I couldn't make this library work.
Ah ok, you should not use the hybrid flow with a pure Angular SPA.
Thanks for your support @damienbod !
Most helpful comment
Ah ok, you should not use the hybrid flow with a pure Angular SPA.