storyboard-webclient/src/app/auth
Adam Coldrick ccb66494e9 Handle expired refresh tokens by reloading the page
If a user's refresh token expires when their access token is also
expired, they cannot obtain a new access token without authenticating
with the openid provider.

Currently StoryBoard doesn't handle this situation, and the session
ends up in a state whereby the access token is invalid and most
requests cause errors due to this.

This commit hackily fixes this by reloading the page if the request
for a new access token fails, such as when the refresh token is
expired.

Change-Id: Ied597133a76e5e61677fafd7bfb35d4107e0836c
2017-05-08 23:43:33 -04:00
..
controller Logging in no longer causes page refresh. 2016-02-24 10:37:53 -08:00
directive Add grunt-lintspaces module to check cr-at-end in js files 2015-01-07 13:29:23 +01:00
http Handle expired refresh tokens by reloading the page 2017-05-08 23:43:33 -04:00
notification Access tokens are now refreshed in preflight promises. 2016-02-24 11:09:26 -08:00
provider Add grunt-lintspaces module to check cr-at-end in js files 2015-01-07 13:29:23 +01:00
resolver Merge "Some project ui/ux updates" 2014-05-22 16:48:07 +00:00
service Access tokens are now refreshed in preflight promises. 2016-02-24 11:09:26 -08:00
template Stop using fixed-width containers 2015-08-17 15:26:37 +00:00
module.js Access tokens are now refreshed in preflight promises. 2016-02-24 11:09:26 -08:00