Skip to content

Add token-broker authentication - #10

Merged
context-and-aviary[bot] merged 2 commits into
masterfrom
mgsrc/dataverse-token-broker-auth-0cd71461
Nov 12, 2026
Merged

context-and-aviary[bot] merged 2 commits into
masterfrom
mgsrc/dataverse-token-broker-auth-0cd71461

Conversation

@context-and-aviary

Copy link
Copy Markdown
Contributor

Summary

  • Adds BrokerTokenCredential, which acquires Dataverse tokens through a Unix-domain socket using a newline-delimited JSON protocol.
  • Adds the Broker credential type and configuration for the broker socket and transport limits. Explicitly supplied TokenCredential instances retain precedence.
  • Enforces HTTPS environment URLs, an exact environment-scoped /.default scope, bounded request timeouts and response sizes, and fail-closed handling for invalid or expired responses. Broker mode does not fall back to other credentials.
  • Documents broker configuration, protocol, and runtime security considerations.
  • Adds tests for broker registration, configuration binding, protocol handling, validation, cancellation, and timeout behavior. Updates credential factory tests for broker support.

Support broker credentials with configuration binding, strict Dataverse scope validation, and bounded fail-closed socket requests. Document the broker protocol and add credential, binding, and registration tests. Update README prerequisites to .NET 10.
Comment on lines +41 to +48
needs: build
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Require successful build and tests
env:
BUILD_RESULT: ${{ needs.build.result }}
run: test "$BUILD_RESULT" = "success"
@context-and-aviary
context-and-aviary Bot merged commit 953911a into master Nov 12, 2026
5 checks passed
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.

2 participants