Redirects an OAuth2 callback to a URL specified in the state parameter with all query parameters from the original request. This allows having one endpoint as the destination for different OAuth2 callbacks destinations. Allows for whitelisting redirect domains.
Possible use cases:
SECURITY: This allows for arbitrary redirects of OAuth2 Authorization Codes. Please understand the implications before using this.
Grab a release from: https://github.com/preichenberger/oauth2-router/releases
https://hub.docker.com/r/preichenberger/oauth2-router
$ oauth2-router -port 3000 -whitelist 'localhost,*.google.com'
$ 2018/06/08 12:48:09 Starting OAuth2 Router on port: 3000
For the following info:
{
"csrf": "39adsijdfiaj",
"redirect": "http://localhost:5000/random_endpoint?apple=pears"
}
Run tests
$ go ./...
Content type
Image
Digest
Size
4.3 MB
Last updated
over 8 years ago
docker pull preichenberger/oauth2-router