grim/containers/oauth-kludge

Note the license in the readme
default tip
2020-11-22, Gary Kramlich
660cfba4b16e
Note the license in the readme
# oauth-kludge
This [kludge](https://www.merriam-webster.com/dictionary/kludge) is to tack a
scope onto a Resource Owner Password Credentials Grant because some OAuth2
providers, namely JetBrains Hub require the Scope even thought it is optional
according to [RFC 6749](https://tools.ietf.org/html/rfc6749#section-4.3.2).
## License
AGPLv3
## Configuration
This service supports a few configuration arguments that must be specified via
environment variables.
`OAUTH_KLUDGE_LISTEN_ADDR`: The address to listen on. Defaults to `:8080`
`OAUTH_KLUDGE_SCOPE`: The value of the scope field to add to the requests. This
is implementation specific and is **required**.
`OAUTH_KLUDGE_TOKEN_ENDPOINT`: The actual URL that the kludged request should
be proxied to. This is implementation specific and is **required**.
## Running
There is a container available on Docker Hub,
[rwgrim/oauth-kludge](https://hub.docker.com/repository/docker/rwgrim/oauth-kludge),
which can be used or you can run it locally making sure to set the required
environment variables.