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

AAD authentication for Azure Event Hub #6667

Merged
merged 1 commit into from
Aug 26, 2020
Merged

AAD authentication for Azure Event Hub #6667

merged 1 commit into from
Aug 26, 2020

Conversation

aelij
Copy link
Contributor

@aelij aelij commented Jul 29, 2020

Note there are a few minor breaking changes:

  • Offset is long instead of string
  • EventData is immutable, so I've removed EventDataProxyMethods

eventData.SetPartitionKey(this.StreamId.Guid.ToString());
var wrapper = new WrappedEventData(eventData.Body, eventData.Properties, eventData.SystemProperties,
partitionKey: StreamId.Guid.ToString(),
offset: DateTime.UtcNow.Ticks,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this change. Previously offset was set to StreamId.Guid.ToString() + now.ToString, but this is impossible now that it's long.

@ReubenBond
Copy link
Member

There are some conflicts now that the other PR is merged. Could you please rebase on master and force-push?

@ReubenBond ReubenBond added this to the 3.3.0 milestone Aug 7, 2020
@benjaminpetit
Copy link
Member

@aelij thank your for your PR! I am ok to merge it, if you could resolve the conflict. Otherwise I can resolve them myself, since they are most likely due to my StreamId changes.

I don't think we will backport this PR to 3.3.0 to limit the risk though.

@aelij
Copy link
Contributor Author

aelij commented Aug 18, 2020

@benjaminpetit I'd appreciate it if you could resolve them

Use Azure.Identity only in tests
@benjaminpetit
Copy link
Member

/azp run Azure DevOps - Functional

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@benjaminpetit benjaminpetit merged commit 65689a2 into dotnet:master Aug 26, 2020
benjaminpetit pushed a commit that referenced this pull request Aug 11, 2021
@aelij aelij deleted the feature/evenhubaad branch November 4, 2022 08:36
@github-actions github-actions bot locked and limited conversation to collaborators Dec 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants