Page MenuHomePhabricator

[Tunnelbroker] implement requesting FCM access token using OAuth 2.0
ClosedPublic

Authored by kamil on Jul 16 2024, 1:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 5:59 AM
Unknown Object (File)
Sun, Nov 3, 1:44 AM
Unknown Object (File)
Sat, Nov 2, 2:23 AM
Unknown Object (File)
Sat, Nov 2, 2:23 AM
Unknown Object (File)
Sat, Nov 2, 2:23 AM
Unknown Object (File)
Sat, Nov 2, 2:11 AM
Unknown Object (File)
Fri, Nov 1, 10:18 AM
Unknown Object (File)
Fri, Nov 1, 10:18 AM
Subscribers

Details

Summary

Implementing what is described in Google's OAuth 2.0 for Server to Server Applications, Making the access token request.

Token lifetime implemented in next diff.

Depends on D12754

Test Plan

Call get_fcm_access_token with get_jwt_token result and print responses.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Jul 16 2024, 2:38 AM
kamil added inline comments.
services/tunnelbroker/src/notifs/fcm/token.rs
13–17 ↗(On Diff #42322)

according to docs, here should be also scope, but for some reason there is no scope field in response

This revision is now accepted and ready to land.Jul 18 2024, 7:15 AM