This 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.
AGPLv3
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.
There is a container available on Docker Hub, rwgrim/oauth-kludge, which can be used or you can run it locally making sure to set the required environment variables.