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)
Mon, Dec 16, 10:50 PM
Unknown Object (File)
Mon, Dec 16, 10:50 PM
Unknown Object (File)
Mon, Dec 16, 10:50 PM
Unknown Object (File)
Mon, Dec 16, 10:50 PM
Unknown Object (File)
Sat, Nov 30, 10:46 PM
Unknown Object (File)
Sat, Nov 30, 9:56 PM
Unknown Object (File)
Sat, Nov 30, 6:15 PM
Unknown Object (File)
Nov 8 2024, 5:59 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