Skip to content

Add scope override for Azure Entra OAuth SASL config #413

Description

@Waleed2660

Hi @mostafa, hope you're doing well!

I've raised a PR to allow users to provide an optional scope field to SASLConfig, so we can override the OAuth scope requested for sasl_azure_entra. Currently the scope is always derived from the broker hostname (https://<broker-host>/.default), which doesn't work for setups where the token is tied to an Azure App ID, e.g. api://<app-id>/.default, rather than the broker's connection endpoint. As a result, auth fails with no workaround.

When scope is left empty, the existing hostname-derived behaviour is unchanged.

I've tested this against Azure with our own custom scope and confirmed it works. PR: #411

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions