Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ttyobiwan/goloxy
Simple service for handling Auth0 authentication
https://github.com/ttyobiwan/goloxy
auth0 go golang
Last synced: 17 days ago
JSON representation
Simple service for handling Auth0 authentication
- Host: GitHub
- URL: https://github.com/ttyobiwan/goloxy
- Owner: ttyobiwan
- License: mit
- Created: 2023-07-16T12:06:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-16T12:16:59.000Z (over 1 year ago)
- Last Synced: 2024-11-13T07:32:09.648Z (3 months ago)
- Topics: auth0, go, golang
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Goloxy
Simple service for handling Auth0 authentication. There are three routes in place:
- `/login?redirect_url=` redirects to Auth0 login page
- `/callback?code=&redirect_url=` gets the access token and redirects to `redirect_url?access_token=`
- `/logout?redirect_url=` redirects to Auth logout pageServer uses Go default net/http package. There is only one dependency installed.
This is for my personal usage, to be able to just copy & paste the config and get the token, without adding these endpoints into every single backend app, or setting up some insane JS apps with million dependencies. If you want to use it in any different way: go ahead.
## Usage
Build Docker images
```bash
make build
```Start Docker containers
```bash
make up
```All three routes should be available at `http://localhost:8080`.