JamesRandall / AngularJS-OAuth2

Package for allowing an AngularJS application to authenticate with an OAuth 2 / Open ID Connect identity provider using the implicit flow.
MIT License
46 stars 42 forks source link

Auto Renew Token #42

Open geiyer opened 7 years ago

geiyer commented 7 years ago

Great work and exactly what I was looking for. Here are few issues that I'm observing and need some help.

  1. The library requires that Silent redirect URL is different from the redirecct url. However, my Authorization server allows one redirect url which I've set to http://localhost. I modified the local version and changed the getAuthorizationURL method to always include the redirect url even for iframe.
  2. I see that the token is renewed only once after which the timer doesn't work.

For testing purpose, I had set the Token Expiration in the Auth server to 10 min.

Appreciate everything you have done.