Burrow icon indicating copy to clipboard operation
Burrow copied to clipboard

Authenticating using SASL_OAUTHBEARER

Open nkostoulas opened this issue 3 years ago • 1 comments

I noticed this is not supported. Is there any plan to do this or would you be open to contributions?

It should be straighforward to do. The config.Net.SASL.TokenProvider will need to be set. A token provider can be created using https://pkg.go.dev/golang.org/x/oauth2/clientcredentials. The same CA used for the TLS config can also be used to verify the OAuth server. The client credentials flow can be used for this.

nkostoulas avatar Jul 14 '22 16:07 nkostoulas

example: https://github.com/damiannolan/sasl

nkostoulas avatar Jul 14 '22 16:07 nkostoulas