An open API service indexing awesome lists of open source software.

https://github.com/techsavvyash/oidc-lite

Lightweight OIDC based auth service in NestJS
https://github.com/techsavvyash/oidc-lite

authentication oauth2 oidc

Last synced: 9 months ago
JSON representation

Lightweight OIDC based auth service in NestJS

Awesome Lists containing this project

README

          

# OIDC Lite

[![codecov](https://codecov.io/gh/Zolo-Ryan/stencil-oidc-wrapper/branch/test-Ashu/graph/badge.svg?token=EOQ2P3DIM0)](https://codecov.io/gh/Zolo-Ryan/stencil-oidc-wrapper)
[![CI](https://github.com/Zolo-Ryan/stencil-oidc-wrapper/actions/workflows/ci.yml/badge.svg)](https://github.com/Zolo-Ryan/stencil-oidc-wrapper/actions/workflows/ci.yml)
[![Discord](https://img.shields.io/badge/Discord-Join-blue.svg)](https://discord.com/channels/1258287843248308234/)

## Overview

OIDC Lite is an OIDC compliant authentication solution designed to offer a balance of necessary features from FusionAuth while ensuring efficient resource management and keeping things light weight.

## Features

- OIDC compliant authentication
- Multi Tenant Approach
- Efficient memory utilization
- Simplified setup

## Documentation

Please refer to [Docs](docs/README.md) for more info about this service.

## Local setup

### Clone

Clone the repository on your machine using
```bash
git clone https://github.com/bharatsahaiyak/bhasai-auth-service
```

### Install Dependencies

```bash
$ yarn install
```

### Setup Environment
```bash
cp .env.example .env
```

### Create the database file

```bash
touch /path/to/sqlitedb/as/per/env
```

### Run Migrations

```bash
npx prisma migrate deploy
```

### Running the app

```bash
# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

# production mode with migrations
$ yarn run start:migrate:prod
```

### Test

```bash
# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov
```

## License

OIDC Lite is [MIT licensed](LICENSE).

## Acknowledgements

### Authors
- [Utkarsh](https://github.com/Zolo-Ryan)
- [Aashutosh](https://github.com/Ashu463)
- [Debatreya](https://github.com/Debatreya)

### Open Source tools:
- [NestJS](https://nestjs.com/)
- [Prisma](https://www.prisma.io/)
- [SQLite](https://www.sqlite.org/)