Migrate from Session to HTTP Basic auth