Skip to content
This repository was archived by the owner on May 10, 2023. It is now read-only.

StreamMeBots/stream-me-oauth2-client-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StreamMe Oauth2 Demo Client

Alpha

Currently oauth clients are in alpha. Contact: support@stream.me

About

This is an example of a basic StreamMe OAuth2 client that requests access to protected StreamMe API resources on behalf of a user. It implements a simple Express server, using Passport and the Passport StreamMe Strategy for easy OAuth2 authentication.

Setup

  1. Clone this repo
  2. Run npm install
  3. Start the server with npm start
  4. Point your browser to http://localhost:3000

Follow the instructions on screen to login with StreamMe, authorize the demo for access to the 'message' and 'emoticon' scopes, and perform simple GET requests for your message feed and your custom emoticons.

To use your own OAuth2 client in this demo, simply update the parameters given to the passport-streamme-strategy in index.js with your client's ID, secret, and redirectURL, then restart the server. If you have not yet created and registered an OAuth2 application, you can do so at developers.stream.me/oauth.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •