Page MenuHomePhabricator

[services-lib] Introduce AuthService for token verification
ClosedPublic

Authored by bartek on Sep 25 2023, 5:47 AM.
Tags
None
Referenced Files
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)
Sun, Oct 27, 4:14 AM
Unknown Object (File)
Oct 13 2024, 7:54 PM
Unknown Object (File)
Oct 13 2024, 7:54 PM
Unknown Object (File)
Oct 13 2024, 7:54 PM
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
Lint Not Applicable
Unit
Tests Not Applicable