scottbrady91 / Angular4-OidcClientJs-Example

Code from scottbrady91.com/Angular
https://www.scottbrady91.com/Angular/SPA-Authentiction-using-OpenID-Connect-Angular-CLI-and-oidc-client
71 stars 60 forks source link

adding silent-refresh does not work #8

Closed nitslucky closed 5 years ago

nitslucky commented 5 years ago

Hi, I took your code from the repo and updated UserManagerSettings....It works as it should. But when I try to add:

automaticSilentRenew: true, silent_redirect_uri: 'http://localhost:4200/silent-refresh.html'

in UserManagerSettings as you have explained in your 'Silent Refresh - Refreshing Access Tokens when using the Implicit Flow' it tries to do silent refresh but then it fails and always getting 'oidc-client.min.js:1 SilentRenewService._tokenExpiring: Error from signinSilent: Frame window timed out' message on the console. I checked other post related to this but didn't find solution.

Thanks

image

scottbrady91 commented 5 years ago

No idea. Might be one for Stack Overflow or a bug report for the oidc-client repo.