authelia/internal/utils
James Elliott 60ff16b518
fix(handlers): refresh user details on all domains (#1642)
* fix(handlers): refresh user details on all domains 

* previously sessions only got checked for updated details if the domain had group subjects attached
* this meant disabled or deleted accounts did not get detected until the session expired or the user visited a domain protected by a group subject
* this patch fixes this issue and simplifies some logic surrounding the check

* add tests

simplify IsStringSlicesDifferent so it only iterates once

* add another test for IsStringSlicesDifferent
2021-02-02 12:01:46 +11:00
..
aes.go [FEATURE] Create dedicated health endpoint (#1489) 2020-11-25 10:20:52 +11:00
certificates.go [BUGFIX] Fix incorrect docs and Certificate PEM extensions (#1589) 2021-01-10 22:10:45 +11:00
certificates_test.go [FEATURE] Enhance LDAP/SMTP TLS Configuration and Unify Them (#1557) 2021-01-04 21:28:55 +11:00
check.go Misc Spelling Corrections 2020-01-21 12:16:00 +11:00
clock.go [CI] Add godot linter (#958) 2020-05-02 15:06:39 +10:00
const.go [FEATURE] LDAP StartTLS (#1500) 2020-12-03 16:23:52 +11:00
exec.go [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
files.go [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
safe_redirection.go [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
safe_redirection_test.go [Buildkite] Introduce CI linting with golangci-lint and reviewdog (#832) 2020-04-09 11:05:17 +10:00
strings.go fix(handlers): refresh user details on all domains (#1642) 2021-02-02 12:01:46 +11:00
strings_test.go fix(handlers): refresh user details on all domains (#1642) 2021-02-02 12:01:46 +11:00
time.go [CI] Add gocritic linter (#977) 2020-05-06 10:52:06 +10:00
time_test.go [Buildkite] Introduce CI linting with golangci-lint and reviewdog (#832) 2020-04-09 11:05:17 +10:00