File tree Expand file tree Collapse file tree 3 files changed +20
-6
lines changed Expand file tree Collapse file tree 3 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,16 @@ with this distribution.
75
75
` bin/vapid --sign claims.json --json ` will output the headers in
76
76
JSON format, which may be useful for other programs.
77
77
78
+ ` bin/vapid --applicationServerKey ` will return the
79
+ ` applicationServerKey ` value you can use to make a restricted
80
+ endpoint. See
81
+ https://developer.mozilla.org/en-US/docs/Web/API/PushManager/subscribe
82
+ for more details. Be aware that this value is tied to the generated
83
+ public/private key. If you remove or generate a new key, any
84
+ restricted URL you've previously generated will need to be
85
+ reallocated. Please note that some User Agents may require you [ to
86
+ decode this string into a Uint8Array] ( https://github.com/GoogleChrome/push-notifications/blob/master/app/scripts/main.js ) .
87
+
78
88
See ` bin/vapid -h ` for all options and commands.
79
89
80
90
Original file line number Diff line number Diff line change @@ -82,4 +82,14 @@ with this distribution.
82
82
``bin/vapid --sign claims.json --json `` will output the headers in JSON
83
83
format, which may be useful for other programs.
84
84
85
+ ``bin/vapid --applicationServerKey `` will return the
86
+ ``applicationServerKey `` value you can use to make a restricted
87
+ endpoint. See
88
+ https://developer.mozilla.org/en-US/docs/Web/API/PushManager/subscribe
89
+ for more details. Be aware that this value is tied to the generated
90
+ public/private key. If you remove or generate a new key, any restricted
91
+ URL you've previously generated will need to be reallocated. Please note
92
+ that some User Agents may require you `to decode this string into a
93
+ Uint8Array <https://github.com/GoogleChrome/push-notifications/blob/master/app/scripts/main.js> `__.
94
+
85
95
See ``bin/vapid -h `` for all options and commands.
Original file line number Diff line number Diff line change @@ -101,12 +101,6 @@ def main():
101
101
print ("{}: {}\n " .format (key , value ))
102
102
print ("\n " )
103
103
104
- token = args .validate
105
- if token :
106
- print ("signed token for dashboard validation:\n " )
107
- print (vapid .validate (token ))
108
- print ("\n " )
109
-
110
104
111
105
if __name__ == '__main__' :
112
106
main ()
You can’t perform that action at this time.
0 commit comments