web-push-libs/vapid

Name: vapid

Owner: web-push-libs

Description: Apps and Libraries to support WebPush VAPID

Created: 2016-04-04 18:07:51.0

Updated: 2018-05-21 16:52:04.0

Pushed: 2018-05-21 16:52:26.0

Homepage:

Size: 108

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Easy VAPID generation

A set of VAPID encoding libraries for popular languages.

PLEASE FEEL FREE TO SUBMIT YOUR FAVORITE LANGUAGE!

VAPID is a draft specification for providing self identification. see https://datatracker.ietf.org/doc/draft-ietf-webpush-vapid/ for the latest specification.

TL;DR:

In short, you create a JSON blob that contains some contact information about your WebPush feed, for instance:


"aud": "https://YourSiteHere.example",
"sub": "mailto://admin@YourSiteHere.example",
"exp": 1457718878

You then convert that to a JWT encoded withalg = "ES256". The resulting token is the Authorization header “Bearer …” token, the Public Key used to sign the JWT is added to the Crypto-Key set as “p256ecdsa=…”


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.