Skip to content

pusher/pusher-platform-auth-server-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

pusher-platform-example-authorizer

This is an example auth server for the pusher-platform example app. It is running on Heroku. To run it yourself:

$ npm install
$ PORT=3000 node main.js
Listening

You can then query the server:

$ curl 'http://localhost:3000/pusherplatform/authorize' --data 'grant_type=client_credentials&credentials=jim'
{"access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0ODgyOTg3MzgsImV4cCI6MTQ4ODM4NTEzOCwiaXNzIjoia2V5cy9jZmFiZGM2Zi1jMjU2LTRhOTMtYmUzNi1jMmE5NDVlYjEyNTMiLCJhcHAiOiIyZWZiNzIxZS0wOTBiLTRlZGEtYmMyYy1mNmMxMzExMjA4ZjYiLCJzdWIiOiJqaW0ifQ.s0A7Iav9_uNnnwEa22cVvXFCaKfrHDxZ_qa-4fv85Co"}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published