rabbitmq / rabbitmq-dotnet-client

RabbitMQ .NET client for .NET Standard 2.0+ and .NET 4.6.2+
https://www.rabbitmq.com/dotnet.html
Other
2.07k stars 579 forks source link

Support OAuth2 authentication #1346

Closed MarcialRosales closed 1 year ago

MarcialRosales commented 1 year ago

Fixes #956

Proposed Changes

Enable the following mechanisms via two attributes added to the ConnectionFactory:

This PR is accompanied by another PR on the rabbitmq-website to update the .Net Client guide.

Acceptance Tests

Via TestApplications/OAuth2, it is possible to test end-to-end the following flows:

To do:

Types of Changes

What types of changes does your code introduce to this project? Put an x in the boxes that apply

This PR is accompanied by another docs' PR

jonproch117 commented 1 year ago

Is this feature still planned to be released? The associated changes to the website here from this PR were published, which threw me off since the referenced classes/properties don't yet exist in the library.

Thanks!

lukebakken commented 1 year ago

@jonproch117 - I'm working on reviewing this PR now. I should be able to get it released by the end of August. Sorry about the confusion!

MarcialRosales commented 1 year ago

Excellent @lukebakken ! Good call on splitting that dependency. We just need to make it clear in the documentation to include this extra DLL when using OAuth2 authentication/authorization. Shall I create that doc's PR or will you do it?

lukebakken commented 1 year ago

We just need to make it clear in the documentation to include this extra DLL when using OAuth2 authentication/authorization. Shall I create that doc's PR or will you do it?

Go right ahead. I think it should be pretty clear to end-users but best to make it as obvious as possible.

lukebakken commented 1 year ago

@jonproch117 - if you'd like to test this out, please see the following beta releases:

I'm working on documentation at this time. You can see an example of how to use the new library via our test code here:

https://github.com/rabbitmq/rabbitmq-dotnet-client/tree/6.x/projects/TestApplications/OAuth2

jonproch117 commented 1 year ago

@lukebakken This is working for me. Thanks!

lukebakken commented 12 months ago

@jonproch117 thank you! I will release version 6.6.0 today.