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

Error while authenticating. Extended authentication handler is not yet supported, with Azure Event Grid MQTT Broker #2095

Open
pre-subham opened this issue Oct 25, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@pre-subham
Copy link

Verification

Describe the bug

We're facing this error:
Error while authenticating. Extended authentication handler is not yet supported. with the Latest MQTT net release and Azure Event Grid MQTT Broker.
We have already tried the solution mentioned to recreate the certificate/user for the Broker, but this issue is frequent on two days basis on One particular Broker out of 3 setups.
Everything is consistent across deployment but the issue is faced with one broker only.

Which component is your bug related to?

  • Client
  • Server

To Reproduce

Steps to reproduce the behavior:

  1. Using this version of MQTTnet '...'.
    4.2.1.781, 4.3.7.1207
  2. Run this code '....'.
mqttClientOptions = new MqttClientOptionsBuilder()
                    .WithClientId(MqttPublisherConstant.userId)
                    .WithTcpServer(MqttPublisherConstant.connectHost, MqttPublisherConstant.port)
                    .WithTls(new MqttClientOptionsBuilderTlsParameters
                    {
                        UseTls = true,
                        Certificates = certs
                    })
                    .WithCredentials(MqttPublisherConstant.userName)

Expected behavior

Should connect without any issues.

Screenshots

Image

@pre-subham pre-subham added the bug Something isn't working label Oct 25, 2024
@rido-min
Copy link
Member

ExtendedAuthentication is supported with MQTT5, and usually used with OAUTH tokens, not sure what's the use case to use ExtendedAuth with certificates.

There is a sample to connect to EventGrid with JWT tokens

note how ExtendedAuth is used in the WithJWT extension method

@pre-consultant
Copy link

What is the change required here for the use of certificate @rido-min. We have been running same for past 1 year, this error started coming now. We have not mentioned protocol, hence it's using default which should be v3.1.

@chkr1011
Copy link
Collaborator

@pre-subham It seems that this feature is broken (regardless of certificates or other variant). There is a handler for that but not used when connecting.
I will add it and let you know when a test version is available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
4 participants