HomePhabricator
Diffusion Comm d91f5d96ab3e

[keyserver] Get WNS authorization tokens

Description

[keyserver] Get WNS authorization tokens

Summary: We need to get WNS (windows notification service) access token from our WNS secrets. This access token is required to send the notifications. This is just a simple POST request taken from the quickstart tutorial.

Test Plan: Run the new function and check if the acces token is properly returned. Modify the returned 'expires_in' value to a smaller one and check if the token is requested again.

Reviewers: kamil, tomek

Reviewed By: tomek

Subscribers: ashoat, atul

Differential Revision: https://phab.comm.dev/D7267

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Apr 3 2023, 3:19 AM
Reviewer
tomek
Differential Revision
D7267: [keyserver] Get WNS authorization tokens
Parents
rCOMMed3d37586958: [keyserver] Add node-fetch package
Branches
Unknown
Tags
Unknown

Event Timeline

Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMMd91f5d96ab3e: [keyserver] Get WNS authorization tokens (authored by Michal Gniadek <michal.gniadek@swmansion.com>).Apr 11 2023, 3:19 AM