Skip to content
marwan-at-workPublic

About

A reverse proxy that appends Google ID Tokens

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

authproxy

Package authproxy provides a reverse proxy that appends a Google ID Token to request headers. It also exposes a sub package that can be used as a server immediately.

Usage

Docker

docker run -p 9090:9090 -e REVERSE_PROXY_URL=mySecureServer.com -e SERVICE_ACCOUNT_KEY=<base64-encoded-json-key> marwan91/authproxy"

Go

You can use the server directly as such

~ go install marwan.io/authproxy/cmd/authproxy
~ export REVERSE_PROXY_URL=mySecureServer.com
~ export SERVICE_ACCOUNT_KEY=<base64-encoded-json-key>
~ authproxy
# listening on port :9090
# you can set the PORT env if you want to user a port other than 9090

Or you can use it programtically:

~ go install marwan.io/authproxy
package main

import "marwan.io/authproxy"

func main() {
    handler, err := authproxy.GetProxyHandler("mySecureProxy.com", "base64EncodedKey")
    // handle err and use the proxy handler
    // ...
}

About

A reverse proxy that appends Google ID Tokens

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages