grafana/pkg/services/auth
Joan López de la Franca Beltran 610999cfa2
Auth: Allow soft token revocation (#31601)
* Add revoked_at field to user auth token to allow soft revokes

* Allow soft token revocations

* Update token revocations and tests

* Return error info on revokedTokenErr

* Override session cookie only when no revokedErr nor API request

* Display modal on revoked token error

* Feedback: Refactor TokenRevokedModal to FC

* Add GetUserRevokedTokens into UserTokenService

* Backendsrv: adds tests and refactors soft token path

* Apply feedback

* Write redirect cookie on token revoked error

* Update TokenRevokedModal style

* Return meaningful error info

* Some UI changes

* Update backend_srv tests

* Minor style fix on backend_srv tests

* Replace deprecated method usage to publish events

* Fix backend_srv tests

* Apply suggestions from code review

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>

* Minor style fix after PR suggestion commit

* Apply suggestions from code review

Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com>

* Prettier fixes

Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com>
2021-03-16 17:44:02 +01:00
..
auth_token_test.go Auth: Allow soft token revocation (#31601) 2021-03-16 17:44:02 +01:00
auth_token.go Auth: Allow soft token revocation (#31601) 2021-03-16 17:44:02 +01:00
model.go Auth: Allow soft token revocation (#31601) 2021-03-16 17:44:02 +01:00
testing.go Auth: Allow soft token revocation (#31601) 2021-03-16 17:44:02 +01:00
token_cleanup_test.go Auth: Replace maximum inactive/lifetime settings of days to duration (#27150) 2020-09-14 15:57:38 +02:00
token_cleanup.go Chore: Add CloudWatch HTTP API tests (#29691) 2021-01-07 11:36:13 +01:00