]> cat aescling's git repositories - mastodon.git/commit
Bind web UI access tokens to sessions (#3940)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 25 Jun 2017 21:51:32 +0000 (23:51 +0200)
committerGitHub <noreply@github.com>
Sun, 25 Jun 2017 21:51:32 +0000 (23:51 +0200)
commited7dc1704dc3ce82567d9aac366b095f02ce181f
treeeb05f60470367fc111c0258e7e3bc06cc779f9d0
parent436ce03772c8c87a215cdcd88020edfb8c241d38
Bind web UI access tokens to sessions (#3940)

* Add overview of active sessions

* Better display of browser/platform name

* Improve how browser information is stored and displayed for sessions overview

* Fix test

* Fix #2347 - Bind web UI access token to session

When you logout, session also destroys the access token, so it's no longer
valid. If access token is destroyed some other way, the session is also
destroyed, requiring a re-login.

Fix #1681 - Add scheduler to remove revoked access tokens and grants

* Fix test
app/controllers/application_controller.rb
app/controllers/home_controller.rb
app/models/session_activation.rb
app/workers/scheduler/doorkeeper_cleanup_scheduler.rb [new file with mode: 0644]
config/sidekiq.yml
db/migrate/20170625140443_add_access_token_id_to_session_activations.rb [new file with mode: 0644]
db/schema.rb