Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/bibekaryal86/auth-service

User Management with Roles and Permissions for Multiple Applications
https://github.com/bibekaryal86/auth-service

Last synced: 1 day ago
JSON representation

User Management with Roles and Permissions for Multiple Applications

Awesome Lists containing this project

README

        

# auth-service

A small utility for authentication and authorization with platforms, profiles, roles and permissions management

## Local Development

* Navigate to project root
* `./gradlew bootrun`
* The bootrun process reads environment variables from gcp folder's `app-credentials.yaml` file
* There is an example `app-credentials_DUMMY.yaml` file provided, create `app-credentials.yaml` file and update values
* These environment variables are checked during application start, and if not present the application won't start
* During the build process, these variables are used in flyway and bootrun scripts

* Flyway
* Run flyway command as `./gradlew flywayMigrate`
* For first run, append `-Dflyway.baselineOnMigrate=true` to set baseline migration
* Clear database (DELETES EVERYTHING)
* `./gradlew flywayClean -Dflyway.cleanDisabled=false`
* Flyway migration is configured to not trigger automatically, it only validates
* This means that migration command needs to be given manually
* Flyway migration is controlled via github actions to main DB branch
* There are 2 database instances created to support local development and production data
This app uses free tier of `tembo.io` for database services utilizing postgres
So, for this service, there are two Postgres instances in `cl7529129` organization
* `auth-service`
* This instance is used for production instance
* When a pull request is merged to main branch, flyway migration is run in this branch
* `auth-service-sandbox`
* This branch is used for local/development instances
* When a pull request is created, flyway migration is run in this branch to validate schema changes

* TODO
* Update this README.md for proper documentation
* Implement RequestMetadata, ResponseCrudInfo