Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tlip/oauthentic
An authentication server built in Typescript with Passport & Oauth2orize
https://github.com/tlip/oauthentic
authentication authorization express javascript js login node oauth oauth2 oauth2-provider oauth2-server oauth2orize razzle redis typeorm typescript users
Last synced: 9 days ago
JSON representation
An authentication server built in Typescript with Passport & Oauth2orize
- Host: GitHub
- URL: https://github.com/tlip/oauthentic
- Owner: tlip
- License: mit
- Created: 2019-05-06T15:25:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T22:13:30.000Z (almost 2 years ago)
- Last Synced: 2024-10-07T17:20:17.396Z (30 days ago)
- Topics: authentication, authorization, express, javascript, js, login, node, oauth, oauth2, oauth2-provider, oauth2-server, oauth2orize, razzle, redis, typeorm, typescript, users
- Language: TypeScript
- Size: 526 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# oauthentic
An Typescript authentication service bootstrap built with [Passport](https://github.com/jaredhanson/passport) and [Oauth2orize](https://github.com/jaredhanson/oauth2orize). User sessions are stored in a Redis cache with user database managed by [TypeORM](https://github.com/typeorm/typeorm/).
## Getting Started
* Make sure you have _at least_ `node v10.13.0+` and `yarn v1.13.0+` installed.
* Make sure you have both Redis and a relational database installed locally and running.
* Clone the repo
```sh
$ git clone https://github.com/flamingYawn/oauthentic.git
$ cd oauthentic
```
* Install dependencies
```sh
$ yarn
```
* Install `ts-node` and `typeorm` globally
```sh
$ yarn global add ts-node typeorm
```
* Create a new database named `oauth` in whatever RDB you're using.
* Replace the example environment variables in `.env`.
* Start the server for the first time
```sh
$ yarn start
```
* Run the initial DB migration
```sh
$ typeorm migration:run
```And then you should be good to go.