HomePhabricator
Diffusion Comm 8a4928e1ee25

[comm-lib] Implement FromRequest for AuthService

Description

[comm-lib] Implement FromRequest for AuthService

Summary:
Extracted code that retrieves AuthService into a dedicated trait implementation.
Inspired by the web::Data counterpart.

Depends on D12504

Test Plan:
Local backup and reports services. Commenting out .app_data(auth_service) from http/mod causes
the error message to be printed.

Reviewers: kamil, varun, will

Reviewed By: varun

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D12506

Details

Provenance
bartekAuthored on Wed, Jun 19, 2:08 AM
Reviewer
varun
Differential Revision
D12506: [comm-lib] Implement FromRequest for AuthService
Parents
rCOMM67772f9e9de4: [lib] Wait for connection to auth ks before requesting user infos
Branches
Unknown
Tags
Unknown