Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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 page

Server 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`.