Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.
/ login-demo Public archive

This repository is outdated. You can find the better version of this repository here: https://github.com/deltachat-bot/discourse-login-bot

Notifications You must be signed in to change notification settings

deltachat/login-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Login with DeltaChat - Demo

This repository is outdated. You can find the better version of this repository here: https://github.com/deltachat-bot/discourse-login-bot

Using DeltaChat as an authentication provider. This generates a QR code which you can scan with Delta Chat to create an account and get a login cookie.

Setup

node.js version 10 or higher required.

  1. Generate a configuration by putting JSON-encoded data into $HOME/.login-dcrc. E.g.:
{
    "email_address": "loginbot@example.org",
    "email_password": "verysecure",
    "client": {
        "clientId": "random string",
        "clientSecret": "random string",
        "redirectUris": ["https://support.delta.chat/auth/oauth2_basic/callback"]
    }
}
  1. Install the dependencies with npm i and run it with npm start.