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)
Tue, Sep 3, 10:53 PM
Unknown Object (File)
Sun, Sep 1, 7:12 AM
Unknown Object (File)
Fri, Aug 30, 3:57 PM
Unknown Object (File)
Fri, Aug 30, 5:49 AM
Unknown Object (File)
Thu, Aug 29, 3:39 PM
Unknown Object (File)
Thu, Aug 29, 10:18 AM
Unknown Object (File)
Mon, Aug 26, 12:34 PM
Unknown Object (File)
Sun, Aug 25, 3:34 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