I'm not good at angular but I followed your examples from the main page and looks like the data after redirection is erased because when I try to get config values from oauthService it says that nothing there. How solve the problem?
Code description
AppComponent has two buttons: actionOne and actionTwo
pressing actionOne button initiates auth flow and it seems to work just fine: I input login and password into the adfs form and it redirects me back to my page with authorization token (I skipped the large part from url for readability):
Describe the bug
I've made the most trivial example with auth flow
I'm not good at angular but I followed your examples from the main page and looks like the data after redirection is erased because when I try to get config values from oauthService it says that nothing there. How solve the problem?
Code description AppComponent has two buttons: actionOne and actionTwo
pressing actionOne button initiates auth flow and it seems to work just fine: I input login and password into the adfs form and it redirects me back to my page with authorization token (I skipped the large part from url for readability):
https://bp-vstupin.mercury.com:4200/#code=f0WXb9S6lTZZjy7lA &state= MWlvWF3
But when I try to get my access token by pressing actionTwo button which calls getAccessToken() from angular-oauth2-oidc it returns null
The following screenshot describes results:
Essential components:
AppModule
AppComponent
Expected behavior getAccessToken returns access token