Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/perebaj/legitima
Legitima is not a framework; rather, it serves as a centralized authentication system that seamlessly integrates various authenticators such as Google, GitHub, and more.
https://github.com/perebaj/legitima
authentication authorization go golang oauth oauth2
Last synced: about 4 hours ago
JSON representation
Legitima is not a framework; rather, it serves as a centralized authentication system that seamlessly integrates various authenticators such as Google, GitHub, and more.
- Host: GitHub
- URL: https://github.com/perebaj/legitima
- Owner: perebaj
- Created: 2023-08-26T15:58:37.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-29T16:23:34.000Z (about 1 year ago)
- Last Synced: 2024-04-20T17:30:44.734Z (7 months ago)
- Topics: authentication, authorization, go, golang, oauth, oauth2
- Language: Go
- Homepage:
- Size: 1.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![Logo](/assets/blackbackground.png#gh-dark-mode-only)
![Logo](/assets/whitebackgorund.png#gh-light-mode-only)![image](assets/legitima.png)
# Legitima
Simple API to authenticate Services
## Google Auth
The required environment variables to use the Google Auth are:
```
export LEGITIMA_GOOGLE_CLIENT_ID=
export LEGITIMA_GOOGLE_CLIENT_SECRET=
export LEGITIMA_MYSQL_URL="root:mysql@tcp(localhost:3307)/mysql" <- Example for local tests (for a while)
```## Command Line
All commands could be accessed using: `Make help`
To reproduce the tests and lint, just run respectively: `make test` and `make lint`.
## Tests
For a while the **integration tests** are just able to run locally, so we need to start the development environment, using the command: `make dev/start`, then we can run the integration tests using the command: `make integration-test`
## Ship a new version
- `make image/publish`
- `heroku container:release web -a legitima`## Heroku Logs
- `heroku logs --tail -a legitima`