Commit Graph

43 Commits (8678620730b26dfa8a07bd0f01d9345d6b266ffd)

Author SHA1 Message Date
Marcus Efraimsson 8678620730
move UserToken and UserTokenService to models package 6 years ago
Marcus Efraimsson a60124a88c
change UserToken from interface to struct 6 years ago
Marcus Efraimsson d8658a765c
enhanced expiration logic for lookup token 6 years ago
Marcus Efraimsson 9483506590
auth token clean up job now runs on schedule and deletes all expired tokens 6 years ago
Marcus Efraimsson 0915f931ae
change configuration settings in auth package 6 years ago
Marcus Efraimsson 7cd3cd6cd4
auth package refactoring 6 years ago
bergquist a6bd2c73a0 introduce samesite setting for login cookie 6 years ago
bergquist a1b3986532 always delete session cookie even if db delete fails 6 years ago
bergquist 91bd908e03 adds more tests signing out session 6 years ago
bergquist 11c4967bdc changes some info logging to debug 6 years ago
bergquist 88ca54eba9 renames signout function 6 years ago
bergquist 43ac79685a delete auth token on signout 6 years ago
bergquist 75760aa892 dont specify domain for auth cookies 6 years ago
bergquist d6edaa1328 moves cookie https setting to [security] 6 years ago
bergquist 516037fbdd makes sure rotation is always higher than urgent rotation 6 years ago
bergquist fd0f9f2dd2 fixes broken test 6 years ago
bergquist ff483f3782 removes old cookie auth configuration 6 years ago
bergquist 56a521b264 makes auth token rotation time configurable 6 years ago
bergquist c3ff3d644c fixes nil ref in tests 6 years ago
bergquist 64124b5042 add setting for how to long we should keep expired tokens 6 years ago
bergquist 12f8338977 stores hashed state code in cookie 6 years ago
bergquist d3ec8e1ccb creates new config section for login settings 6 years ago
Marcus Efraimsson 4096449aec
extract auth token interface and remove auth token from context 6 years ago
Marcus Efraimsson 366e356e08
more auth token tests 6 years ago
bergquist 777bd9ea18 adds cleanup job for old session tokens 6 years ago
Marcus Efraimsson f040f9a400
fix tests after renaming now 6 years ago
Marcus Efraimsson 38efc1d7d2
s/print/log 6 years ago
bergquist 92620af75f avoid calling now() multiple times 6 years ago
Marcus Efraimsson dd8476d81a
passing auth token tests 6 years ago
Marcus Efraimsson 565408194a
handle expired tokens 6 years ago
bergquist 697ddccd8e set userToken on request when logging in 6 years ago
bergquist 55b3013eb3 moves initWithToken to auth package 6 years ago
Marcus Efraimsson 734a7d38b2
set cookie name from configuration 6 years ago
Marcus Efraimsson 766cfab374
change rotate time 6 years ago
Marcus Efraimsson 0d1e3759eb
mixor fixes 6 years ago
bergquist 2e97d39abe removes commented code 6 years ago
bergquist 47a7d93fd9 moves rotation into auth since both happens before c.Next() 6 years ago
bergquist fd937e3d95 remove maxage from session token 6 years ago
bergquist c2accfa4c0 inital code for rotate 6 years ago
bergquist aba6148c43 login users based on token cookie 6 years ago
Marcus Efraimsson b0df7280be
begin user auth token implementation 6 years ago