René's URL Explorer Experiment


Title: Add configurable Azure Managed token audiences by berndverst · Pull Request #305 · microsoft/durabletask-java · GitHub

Open Graph Title: Add configurable Azure Managed token audiences by berndverst · Pull Request #305 · microsoft/durabletask-java

X Title: Add configurable Azure Managed token audiences by berndverst · Pull Request #305 · microsoft/durabletask-java

Description: Issue describing the changes in this PR Implement configurable token audiences throughout the Java Azure Managed SDK, following: microsoft/durabletask-python#272 — an open implementation PR, not released Python functionality. Original .NET guidance: Azure DevOps PR 17297459. Python regression cases at implementation commit eee0f41 and usage documentation. Pull request checklist Documentation changes are included: README, government-cloud usage example, and public API Javadocs. My changes are added to the CHANGELOG.md. I have added the required unit and local transport regression tests. Live cloud authentication was not exercised. Additional information Audience selection and compatibility Extend existing setResourceId options with shared normalization and add optional trailing resourceId overloads for client/worker create*Builder and useDurableTaskScheduler. All existing signatures remain available. Support connection-string ResourceId for every authentication type. It is a token audience URI, not an ARM resource path. Explicit nonempty values take precedence. Missing/null/empty values select https://durabletask.azure.us only for case-insensitive REGION_NAME prefixes usgov or usdod; otherwise retain https://durabletask.io. This intentionally changes the government-region default. No audience is inferred from the endpoint. Normalize surrounding whitespace, trailing slashes, and one case-insensitive /.default suffix; reject values that become empty. Preserve URI casing and avoid repeated normalization when converting connection strings to options. Resolve defaults per options/connection-string instance and retain scopes across refreshes, channel recreation, and gRPC reconnects. Do not change token caching/concurrency, lazy acquisition, anonymous authentication, transport selection, or caller-owned channels. This Java module has no separate async or sandbox management/registration authentication surface. No dependency or package versions change. Authority remains separate Caller-supplied TokenCredential objects retain their own authority configuration. Connection strings construct credentials, so optional AuthorityHost is forwarded to the supported Azure Identity 1.18.1 builders: DefaultAzure, Environment, WorkloadIdentity, and InteractiveBrowser. Omission/empty values leave Azure Identity defaults untouched, including AZURE_AUTHORITY_HOST where supported. Managed identity uses the hosting environment's identity endpoint; developer tools need their own cloud configuration. Neither audience selection nor REGION_NAME modifies the endpoint or authority. Validation gradlew.bat :azuremanaged:build :client:test -PskipSigning -x downloadProtoFiles: passed on JDK 21, with the existing Java 8 main / Java 11 test source-target settings. 139 Azure Managed tests and 482 core unit tests passed; no failures or errors. Azure Managed Javadocs and SpotBugs main/test checks passed; both SpotBugs XML reports contain zero findings. Forced all 139 Azure Managed tests with REGION_NAME=UsGoVVirginia; also forced actual-environment scope verification with REGION_NAME=UsDoDCentral and ran the final suite with the region unset. Recording credentials verify actual requested scopes across 28 audience cases × 12 public configuration paths, token refresh/cache reuse, all nine authenticated connection-string types, legacy overloads, invalid inputs, anonymous access, per-instance selection, and connection-string conversion. Loopback gRPC tests verify two distinct transport connections retain the government audience across reconnects, without changing the token cache. Caller-owned channel lifetime remains unchanged. Scope/authority assertions use recording credentials and mocked credential builders; transport tests use a local gRPC server. No live Azure public/government authentication or cloud end-to-end deployment was tested. The existing proto download task was excluded from final validation to avoid unrelated generated-source changes.

Open Graph Description: Issue describing the changes in this PR Implement configurable token audiences throughout the Java Azure Managed SDK, following: microsoft/durabletask-python#272 — an open implementation PR, not r...

X Description: Issue describing the changes in this PR Implement configurable token audiences throughout the Java Azure Managed SDK, following: microsoft/durabletask-python#272 — an open implementation PR, not r...

Opengraph URL: https://github.com/microsoft/durabletask-java/pull/305

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5424ed41-f9dc-2510-2225-eb83de6d7b20
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id90A0:2989EC:C346:FB96:6AFE306F
html-safe-nonce7423bc4e9df58adafeb73ba6042a6a562f5215362154bd536d371f56e45bc8b0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEEwOjI5ODlFQzpDMzQ2OkZCOTY6NkFGRTMwNkYiLCJ2aXNpdG9yX2lkIjoiMzU5MjE1ODMwOTk3NDQyMTYxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc13815599295c56ac5170b992641c7fa417089ca6e60bb3b456964b2b591baf7
hovercard-subject-tagpull_request:4645601934
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/microsoft/durabletask-java/pull/305/files
twitter:imagehttps://avatars.githubusercontent.com/u/4535280?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/4535280?s=400&v=4
og:image:altIssue describing the changes in this PR Implement configurable token audiences throughout the Java Azure Managed SDK, following: microsoft/durabletask-python#272 — an open implementation PR, not r...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned70e31220a67f6376c108d2416fa8e7df854c1065b1672ab7a88ab6dc3a809e2
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/microsoft/durabletask-java git https://github.com/microsoft/durabletask-java.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id452823832
octolytics-dimension-repository_nwomicrosoft/durabletask-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id452823832
octolytics-dimension-repository_network_root_nwomicrosoft/durabletask-java
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseccb88d9c92abe69245b429398c8a57ae87070c7c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/durabletask-java/pull/305/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fdurabletask-java%2Fpull%2F305%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fdurabletask-java%2Fpull%2F305%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=microsoft%2Fdurabletask-java
Reloadhttps://github.com/microsoft/durabletask-java/pull/305/files
Reloadhttps://github.com/microsoft/durabletask-java/pull/305/files
Reloadhttps://github.com/microsoft/durabletask-java/pull/305/files
microsofthttps://github.com/microsoft
durabletask-javahttps://github.com/microsoft/durabletask-java
Codehttps://github.com/microsoft/durabletask-java
Issues47 (47)https://github.com/microsoft/durabletask-java/issues
Pull requests4 (4)https://github.com/microsoft/durabletask-java/pulls
Actionshttps://github.com/microsoft/durabletask-java/actions
Projectshttps://github.com/microsoft/durabletask-java/projects
Security and qualityhttps://github.com/microsoft/durabletask-java/security
Insightshttps://github.com/microsoft/durabletask-java/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fmicrosoft%2Fdurabletask-java%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmicrosoft%2Fdurabletask-java%2Fissues%2Fnew%2Fchoose
Bernd Verst (berndverst)https://github.com/berndverst
mainhttps://github.com/microsoft/durabletask-java/tree/main
berndverst-configurable-token-audiencehttps://github.com/microsoft/durabletask-java/tree/berndverst-configurable-token-audience
Conversation 7 https://github.com/microsoft/durabletask-java/pull/305
Commits 3 https://github.com/microsoft/durabletask-java/pull/305/commits
Checks 8 https://github.com/microsoft/durabletask-java/pull/305/checks
Files changed https://github.com/microsoft/durabletask-java/pull/305/files
Please reload this pagehttps://github.com/microsoft/durabletask-java/pull/305/files
Add configurable Azure Managed token audiences https://github.com/microsoft/durabletask-java/pull/305/files#top
Show all changes 3 commits https://github.com/microsoft/durabletask-java/pull/305/files
56b7f36 Add configurable Azure Managed token audiences Sep 26, 2026 https://github.com/microsoft/durabletask-java/pull/305/commits/56b7f36ea230e93617cfb4003b0b87dce84c0b22
e35b693 Address token audience test review feedback Sep 28, 2026 https://github.com/microsoft/durabletask-java/pull/305/commits/e35b693978bc698a5d604ba7a5525b476916d768
624e5bd Handle Unicode whitespace in token audiences Oct 1, 2026 https://github.com/microsoft/durabletask-java/pull/305/commits/624e5bdb1f101df07d75cc5b691c3a5a526bfaa1
Clear filters https://github.com/microsoft/durabletask-java/pull/305/files
Please reload this pagehttps://github.com/microsoft/durabletask-java/pull/305/files
Please reload this pagehttps://github.com/microsoft/durabletask-java/pull/305/files
CHANGELOG.md https://github.com/microsoft/durabletask-java/pull/305/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
README.md https://github.com/microsoft/durabletask-java/pull/305/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
DurableTaskSchedulerClientExtensions.java https://github.com/microsoft/durabletask-java/pull/305/files#diff-f78d3113bddf733fe81c6ad55c42f156c2f1f00e6c7ac2b9e3b4ba3e8c6eade1
DurableTaskSchedulerClientOptions.java https://github.com/microsoft/durabletask-java/pull/305/files#diff-cacd2caad4aae8f6f71e39c43811cfa4e64830c31c6de6ddb82dc8e8f30dbb09
DurableTaskSchedulerConnectionString.java https://github.com/microsoft/durabletask-java/pull/305/files#diff-ae8f2593d0b84624922b5e007bfe73345282685c236b8f14cb830a21e3c47943
DurableTaskSchedulerWorkerExtensions.java https://github.com/microsoft/durabletask-java/pull/305/files#diff-252c6e2ac351cb688b7e02e000dc9512368d6ae2d1059c5289459395ccb6d30c
DurableTaskSchedulerWorkerOptions.java https://github.com/microsoft/durabletask-java/pull/305/files#diff-a744527946428ea83381982b61cb6d5904eb72e5ea80e215dabf0ef3d255afc0
ResourceId.java https://github.com/microsoft/durabletask-java/pull/305/files#diff-8123dfa1f418099d7f8d00f9548f7fe8b5b8e4e4ebce732d25c61af33e0349ab
AudienceTransportTest.java https://github.com/microsoft/durabletask-java/pull/305/files#diff-67ce7e0749f732a654f73eb135dc5aace563ae624e8b143da7532c0ea4a02cf7
ConnectionStringAuthenticationTest.java https://github.com/microsoft/durabletask-java/pull/305/files#diff-52fd2169c52d3c1ac71e5ab080b9c93809e07b4fc28c997740b1269b102205cd
DurableTaskSchedulerWorkerOptionsTest.java https://github.com/microsoft/durabletask-java/pull/305/files#diff-cba9b31fb106f86b6dc821876d6f06f6b00f02eb0095eeec5d0a4c5a65691adb
ResourceIdTest.java https://github.com/microsoft/durabletask-java/pull/305/files#diff-f32b2e755b258c9756166b3c8d32243854da158dace6bff2a84ccbd77b64c2a3
https://github.com/microsoft/durabletask-java/blob/main/CODEOWNERS#L11
CHANGELOG.mdhttps://github.com/microsoft/durabletask-java/pull/305/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
View file https://github.com/microsoft/durabletask-java/blob/624e5bdb1f101df07d75cc5b691c3a5a526bfaa1/CHANGELOG.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-java/pull/305/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-java/pull/305/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
https://github.com/microsoft/durabletask-java/blob/main/CODEOWNERS#L11
README.mdhttps://github.com/microsoft/durabletask-java/pull/305/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/microsoft/durabletask-java/blob/624e5bdb1f101df07d75cc5b691c3a5a526bfaa1/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-java/pull/305/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-java/pull/305/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/microsoft/durabletask-java/pull/305/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/microsoft/durabletask-java/blob/main/CODEOWNERS#L11
...ain/java/com/microsoft/durabletask/azuremanaged/DurableTaskSchedulerClientExtensions.javahttps://github.com/microsoft/durabletask-java/pull/305/files#diff-f78d3113bddf733fe81c6ad55c42f156c2f1f00e6c7ac2b9e3b4ba3e8c6eade1
View file https://github.com/microsoft/durabletask-java/blob/624e5bdb1f101df07d75cc5b691c3a5a526bfaa1/azuremanaged/src/main/java/com/microsoft/durabletask/azuremanaged/DurableTaskSchedulerClientExtensions.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-java/pull/305/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-java/pull/305/files#diff-f78d3113bddf733fe81c6ad55c42f156c2f1f00e6c7ac2b9e3b4ba3e8c6eade1
https://github.com/microsoft/durabletask-java/pull/305/files#diff-f78d3113bddf733fe81c6ad55c42f156c2f1f00e6c7ac2b9e3b4ba3e8c6eade1
https://github.com/microsoft/durabletask-java/pull/305/files#diff-f78d3113bddf733fe81c6ad55c42f156c2f1f00e6c7ac2b9e3b4ba3e8c6eade1
https://github.com/microsoft/durabletask-java/pull/305/files#diff-f78d3113bddf733fe81c6ad55c42f156c2f1f00e6c7ac2b9e3b4ba3e8c6eade1
https://github.com/microsoft/durabletask-java/blob/main/CODEOWNERS#L11
...c/main/java/com/microsoft/durabletask/azuremanaged/DurableTaskSchedulerClientOptions.javahttps://github.com/microsoft/durabletask-java/pull/305/files#diff-cacd2caad4aae8f6f71e39c43811cfa4e64830c31c6de6ddb82dc8e8f30dbb09
View file https://github.com/microsoft/durabletask-java/blob/624e5bdb1f101df07d75cc5b691c3a5a526bfaa1/azuremanaged/src/main/java/com/microsoft/durabletask/azuremanaged/DurableTaskSchedulerClientOptions.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-java/pull/305/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-java/pull/305/files#diff-cacd2caad4aae8f6f71e39c43811cfa4e64830c31c6de6ddb82dc8e8f30dbb09
https://github.com/microsoft/durabletask-java/pull/305/files#diff-cacd2caad4aae8f6f71e39c43811cfa4e64830c31c6de6ddb82dc8e8f30dbb09
https://github.com/microsoft/durabletask-java/pull/305/files#diff-cacd2caad4aae8f6f71e39c43811cfa4e64830c31c6de6ddb82dc8e8f30dbb09
https://github.com/microsoft/durabletask-java/pull/305/files#diff-cacd2caad4aae8f6f71e39c43811cfa4e64830c31c6de6ddb82dc8e8f30dbb09
https://github.com/microsoft/durabletask-java/pull/305/files#diff-cacd2caad4aae8f6f71e39c43811cfa4e64830c31c6de6ddb82dc8e8f30dbb09
https://github.com/microsoft/durabletask-java/pull/305/files#diff-cacd2caad4aae8f6f71e39c43811cfa4e64830c31c6de6ddb82dc8e8f30dbb09
https://github.com/microsoft/durabletask-java/pull/305/files#diff-cacd2caad4aae8f6f71e39c43811cfa4e64830c31c6de6ddb82dc8e8f30dbb09
Please reload this pagehttps://github.com/microsoft/durabletask-java/pull/305/files
Please reload this pagehttps://github.com/microsoft/durabletask-java/pull/305/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.