Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

hftlclub/clauth-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cbadfa4 · Jan 21, 2019

History

7 Commits
Dec 8, 2017
Dec 8, 2017
Jan 21, 2019
Dec 8, 2017
Jan 21, 2019
Dec 8, 2017
Jan 21, 2019
Jan 21, 2019
Jan 21, 2019
Dec 8, 2017
Dec 8, 2017

Repository files navigation

clauth-server

Simple Auth server with JWT

Installation and start

npm install
npm start

Do not forget to provide RSA keys (see below).

Generating RSA key pair

JWT tokens are signed with the asymmetric RS256 algorithm. We need to provide an RSA key pair for that:

openssl genpkey -algorithm RSA -out keys/private.pem -pkeyopt rsa_keygen_bits:2048
openssl rsa -pubout -in keys/private.pem -out keys/public.pem

About

Simple Auth server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published