Commit Graph

1792 Commits (58e57a1669e8c2f2d0f2036ffed68d61f5069de4)

Author SHA1 Message Date
bergquist 170783c292 make hourly cleanup the default behavior 6 years ago
Marcus Efraimsson 1a140ee199
run token cleanup job when grafana starts, then each hour 6 years ago
Marcus Efraimsson 8ae066ab5d
move authtoken package into auth package 6 years ago
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
Marcus Efraimsson d433ca7d40
fix util for splitting host and port 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
Torkel Ödegaard 9a598be4f7 Fixed failing unit test 6 years ago
Torkel Ödegaard a2dd6f378f fixed sqlite issue introduced by #14709 6 years ago
Mario Trangoni b7628f2060 pkg/util/{filepath.go,shortid_generator.go}: Fix golint issues 6 years ago
Mario Trangoni 8261613b51 pkg/util/{ip.go,url.go}: Fix some golint issues 6 years ago
bergquist e218cc7637 docs: updates docs to refer to using uid 6 years ago
bergquist 7c93335d28 gofmt issue 6 years ago
bergquist 809019d4ee moves test files into testdata folder 6 years ago
bergquist 8f0e65a150 renames alert_notifications -> notifiers 6 years ago
bergquist 21fff415ed removes unnessecary db request 6 years ago
bergquist 935da14f7d tab/spaces formatting 6 years ago
bergquist 364154d81f moves timeout tests to an integration test 6 years ago
Vlad Ellis 9692955d4f
Correct formatting of sqlstore_test.go 6 years ago
Mario Trangoni bf90ff87cf pkg/services/dashboards/dashboard_service.go: simplify return 6 years ago
Vlad Ellis c208186f26 Parse database host correctly when using IPv6 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 5998646da5 restrict session usage to auth_proxy 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