No description
  • Go 86.1%
  • Dockerfile 10.8%
  • Just 3.1%
Find a file
2026-03-25 02:04:49 +03:00
.dockerignore make it universal 2026-02-21 19:33:45 +03:00
.gitignore init 2026-02-21 18:37:15 +03:00
config.go make it universal 2026-02-21 19:33:45 +03:00
Dockerfile make it universal 2026-02-21 19:33:45 +03:00
go.mod make it universal 2026-02-21 19:33:45 +03:00
go.sum make it universal 2026-02-21 19:33:45 +03:00
Justfile update docker registry url and remove push script 2026-03-25 02:04:49 +03:00
main.go allow to add scopes to oauth2 config 2026-03-25 01:52:37 +03:00
readme.md update readme 2026-03-25 01:54:35 +03:00

oauth2-proxy

usage

example docker-compose config for raindrop api.

raindrop-api:
  image: git.tsivinsky.com/tsivinsky/oauth2-proxy:latest
  container_name: raindrop-api
  restart: unless-stopped
  expose:
    - 5000
  environment:
    - AUTH_CONFIG=/config/config.json
    - CLIENT_ID={raindrop client_id}
    - CLIENT_SECRET={raindrop client_secret}
    - REDIRECT_URI=http://localhost:5000/oauth/callback
    - API_URL=https://api.raindrop.io/rest/v1
    - AUTH_URL=https://raindrop.io/oauth/authorize
    - TOKEN_URL=https://raindrop.io/oauth/access_token
  volumes:
    - ./data/raindrop-api:/config

example for google oauth2

youtube-oauth:
  image: git.tsivinsky.com/tsivinsky/oauth2-proxy:latest
  container_name: youtube-oauth
  restart: unless-stopped
  ports:
    - 5000:5000
  environment:
    - AUTH_CONFIG=/config/config.json
    - CLIENT_ID={google client_id}
    - CLIENT_SECRET={google client_secret}
    - REDIRECT_URI=http://localhost:5000/oauth/callback
    - API_URL=https://www.googleapis.com
    - AUTH_URL=https://accounts.google.com/o/oauth2/v2/auth
    - TOKEN_URL=https://oauth2.googleapis.com/token
  volumes:
    - ./data/google-api:/config

credits

thanks to this repo for example implementation of oauth2.