Refresh token notes

This commit is contained in:
Matthew Ryan Dillon 2015-10-19 13:34:29 -07:00
parent d3355370fd
commit 744f5be2a4
2 changed files with 3 additions and 2 deletions
app/authenticators
config

View file

@ -1,3 +1,4 @@
// Note: this is here for user lockout authentication
import Ember from 'ember';
import JwtTokenAuthenticator from 'simple-auth-token/authenticators/jwt';

View file

@ -28,8 +28,8 @@ module.exports = function(environment) {
authorizationPrefix: 'Bearer ',
authorizationHeaderName: 'Authorization',
refreshAccessTokens: true,
timeFactor: 1000,
refreshLeeway: 300,
timeFactor: 1000, // 1000 ms/s; JWT returned in unix time seconds
refreshLeeway: 1800, // (60 s/min) * (30 min) = 1800 s
},
contentSecurityPolicy: {
'default-src': "'none'",