Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authenticating using SASL_OAUTHBEARER #759

Open
nkostoulas opened this issue Jul 14, 2022 · 1 comment
Open

Authenticating using SASL_OAUTHBEARER #759

nkostoulas opened this issue Jul 14, 2022 · 1 comment

Comments

@nkostoulas
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant