Authenticating using SASL_OAUTHBEARER
nkostoulas opened this issue · 1 comments
nkostoulas commented
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 commented
example: https://github.com/damiannolan/sasl