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)
Sat, Dec 21, 2:09 PM
Unknown Object (File)
Sat, Dec 21, 2:09 PM
Unknown Object (File)
Sat, Dec 21, 2:09 PM
Unknown Object (File)
Sat, Dec 21, 2:08 PM
Unknown Object (File)
Sat, Dec 21, 2:00 PM
Unknown Object (File)
Sat, Dec 14, 2:28 AM
Unknown Object (File)
Sun, Dec 1, 11:53 AM
Unknown Object (File)
Fri, Nov 29, 6:35 AM
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