Skip to content

donpepe0/steemconnect

 
 

Repository files navigation

CircleCI Build Status Crowdin GitHub license SteemConnect channel on Discord

SteemConnect v2

Install

Download and install Node.js >= 7.7.1 then run

npm install

Add config vars

BROADCASTER_USERNAME = Main Steem account holding posting permissions e.g 'steemconnect'
BROADCASTER_POSTING_WIF = Posting wif of the main account
JWT_SECRET = Random string
DATABASE_URL = PostgreSQL database URL
DATABASE_NAME = production
DEBUG = sc2:*

Run

npm start

Demo

Test demo app here: https://steemit.github.io/sc2-angular

Api

Routes

/api/me - Get user profile (require user or app token)

/api/broadcast - Broadcast posting operation for user (require app token)

OAuth2

/api/oauth2/authorize - Issue new app token (require user token)

Tokens

Tokens are created with JWT, the payload is public. Here is how it look:

Token for user

{
  role: 'user',
  user: 'guest'
}

The token hash is saved on user localStorage once he login.

Token for application

{
  role: 'app',
  proxy: 'example',
  user: 'guest',
  scope: ['vote', 'comment']
}

The token hash is sent to the application once user authorize the application.

About

Token based authentication for Steem made easy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 70.2%
  • JavaScript 29.7%
  • HTML 0.1%