Page MenuHomePhabricator

Create a variation of the CentralAuthTokenSessionProvider based on an Authorization header
Closed, ResolvedPublic

Description

To allow the auto-login mechanism provided by CentralAuth to properly function with a REST API, it needs to support header-based authentication. A straight forward way to do this is to use an Authorization header in a way similar to how OAuth uses it, e.g. something like Authorization MWCentralAuth <token>.

Note that this new SessionProvider should return true from the safeAgainstCsrf() method, while the old parameter based CentralAuthTokenSessionProvider must return false.

Event Timeline

Change 643339 had a related patch set uploaded (by Daniel Kinzler; owner: Daniel Kinzler):
[mediawiki/extensions/CentralAuth@master] WIP: Create CentralAuthHeaderSessionProvider

https://gerrit.wikimedia.org/r/643339

daniel triaged this task as High priority.
daniel moved this task from Backlog to Doing on the Platform Team Workboards (Green) board.

Change 643339 merged by jenkins-bot:
[mediawiki/extensions/CentralAuth@master] Create CentralAuthHeaderSessionProvider

https://gerrit.wikimedia.org/r/643339