Closed mstruk closed 3 years ago
@mstruk Looks good. Thanks.
@mstruk I guess we can merge this, right? Should we do 0.8.0 release afterwards? Or include it in 0.7.2?
It would make sense to do 0.7.2 indeed as OAuth over PLAIN functionality would then neatly be completed in 0.7.x branch. We can merge this, but then It would be good to also merge #102 before releasing 0.7.2.
@mstruk Ok. Please have a look at #102 then ... so that we can release it and merge the PR in operators repo. Thanks.
Do we add Milestone 0.7.2 so we can properly tag it as such? I pushed all the updates for #102, it's running tests now ...
Add a non-breaking addition whereby not setting the
oauth.token.endpoint.uri
on the listener, theOAuth over PLAIN
works in 'access-token-only' mode (or 'no-client-credentials' mode), whereusername
andpassword
parameters of PLAIN authentication are always treated as account id + access token, never as Client ID + secret. In this mode the value ofpassword
parameter should never be prefixed by '$accessToken:' to signify that access token is passed. Rather, in this mode it is always assumed that the access token is passed as-is.If
oauth.token.endpoint.uri
is configured, then the current behaviour stays the way it currently is - the default is to interpret theusername
andpassword
parameters as Client ID + secret, unless the '$accessToken:' prefix is detected in which case the parameters are interpreted as account id + access token.This PR is a continuation of #103.