Skip to content

An example ExpressJS website demonstrating the passport-keybase authentication strategy for PassportJS.

License

Notifications You must be signed in to change notification settings

rickjerrity/passport-keybase-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

passport-keybase Express Example

This is an example of how to use the passport-keybase Passport strategy inside of an Express server.

Installation

First clone this repo. Then run the following command:

npm install

Configuration

The keybase-id package that this server depends on requires a Keybase client executable to be installed, which will then need to be configured as the keybasePath option when initializing the KeybaseId client. More information can be found inside the Keybase ID repo README.

Next, you will need to replace the twitterApiKey and twitterApiSecret option values with your own Twitter API Key and Secret if you have them, or remove these options entirely if you don't.

Running

After installing and configuring the server, it is time to run it by executing the following command:

npm start

The server should now be listening on port 3000 if everything went well. Load up https://localhost:3000/ in your browser, and follow the instructions for authenticating using Keybase ID!

About

An example ExpressJS website demonstrating the passport-keybase authentication strategy for PassportJS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published