Page MenuHomePhabricator

[services-lib] Introduce AuthService for token verification
ClosedPublic

Authored by bartek on Sep 25 2023, 5:47 AM.
Tags
None
Referenced Files
F3386869: D9280.id31393.diff
Fri, Nov 29, 6:35 AM
Unknown Object (File)
Mon, Nov 25, 7:56 PM
Unknown Object (File)
Mon, Nov 25, 3:26 PM
Unknown Object (File)
Mon, Nov 18, 12:29 AM
Unknown Object (File)
Mon, Nov 11, 1:51 PM
Unknown Object (File)
Thu, Nov 7, 5:51 PM
Unknown Object (File)
Oct 27 2024, 4:14 AM
Unknown Object (File)
Oct 13 2024, 7:54 PM
Subscribers

Details

Summary

Created a helper "service struct" to easily handle token operations. It allows to obtain a service-to-service token and to verify a token's validity.
For UserIdentity (client tokens) it calls Identity Service to verify the token.

This struct is designed to be provided as app-data to HTTP actix servers - it's going to be used by auth middleware.

Depends on D9279

Test Plan

cargo check, logic is tested together with next diffs

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage