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

[service-bus] Allowing for a SAS key to be directly specified in a connection string. #10951

Conversation

richardpark-msft
Copy link
Member

@richardpark-msft richardpark-msft commented Aug 31, 2020

Allow for connection strings to be passed that contain a Shared Access Signature.

This expands core-amqp so it can parse the connection string into a SharedKeyCredential. There are some square-peg/round-hole issues where, for instance, we expose the SharedKeyName and SharedKey that do not make sense for SAS URIs as they don't contain a re-usable key, etc...

Fixes #10832

sdk/core/core-amqp/src/auth/sas.ts Outdated Show resolved Hide resolved
sdk/core/core-amqp/src/auth/sas.ts Outdated Show resolved Hide resolved
sdk/core/core-amqp/src/auth/sas.ts Show resolved Hide resolved
@richardpark-msft richardpark-msft force-pushed the richardpark-sb-track2-sas-safras-2 branch from bd8deac to 1f4b461 Compare September 2, 2020 22:54
@richardpark-msft richardpark-msft changed the title DRAFT: [service-bus] Allowing for a SAS key to be directly specified in a connection string. [service-bus] Allowing for a SAS key to be directly specified in a connection string. Sep 2, 2020
sdk/core/core-amqp/src/auth/sas.ts Outdated Show resolved Hide resolved
sdk/core/core-amqp/src/auth/sas.ts Outdated Show resolved Hide resolved
sdk/eventhub/event-hubs/src/linkEntity.ts Show resolved Hide resolved
sdk/eventhub/event-hubs/test/utils/testUtils.ts Outdated Show resolved Hide resolved
sdk/core/core-amqp/test/config.spec.ts Show resolved Hide resolved
@ghost
Copy link

ghost commented Sep 3, 2020

Well done team. Great effort!

@richardpark-msft
Copy link
Member Author

/azp run js - eventhubs-client - tests

@richardpark-msft
Copy link
Member Author

/azp run js - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@ramya-rao-a ramya-rao-a left a comment

Choose a reason for hiding this comment

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

Re-approving after looking at the latest set of changes

@richardpark-msft richardpark-msft merged commit 43bb11a into Azure:master Sep 3, 2020
@richardpark-msft richardpark-msft deleted the richardpark-sb-track2-sas-safras-2 branch September 3, 2020 17:50
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

Successfully merging this pull request may close these issues.

[service-bus] [event-hubs] Allow passing in a SAS (Shared Access Signature) token for authentication
3 participants