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)
Wed, Jul 3, 7:01 PM
Unknown Object (File)
Wed, Jul 3, 4:42 AM
Unknown Object (File)
Tue, Jul 2, 5:50 PM
Unknown Object (File)
Tue, Jul 2, 1:15 PM
Unknown Object (File)
Sun, Jun 30, 5:51 PM
Unknown Object (File)
Sun, Jun 30, 5:51 PM
Unknown Object (File)
Sun, Jun 30, 5:51 PM
Unknown Object (File)
Sun, Jun 30, 5:50 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