Worked Examples

Developer reference for provider authentication — Unified Discovery

Examine developer contracts for authenticated research providers, including credential isolation, delegated access, token handling, authorization, and fail-closed behavior.

ProductResearch LibrarianUpdatedNovember 14, 2026Reading time30 minutes

Application: Unified Discovery
Integration area: Provider Authentication / Platform Core / Library / Research
Classification: Developer Reference / Provider Authentication
Audience: Backend engineers, platform architects, integration developers, security engineers, DevOps operators, and research software developers
Technical level: Advanced
Reference environment: Python 3.10 or later, standard library
Relevant specifications: OAuth 2.0, RFC 6750, RFC 7636, RFC 8705, RFC 9700, RFC 9110, RFC 9457, and OWASP security guidance
Primary outputs: Versioned provider connection contract, credential-isolation model, authorized request construction, sanitized source response, typed failures, audit events, security tests, and release evidence
Estimated reading time: 18–23 minutes; 40–55 minutes including the implementation and exercises

1. Service responsibility and acceptance contract

Unified Discovery may connect to scientific repositories, research catalogs, institutional datasets, geospatial services, scholarly databases, and other authorized information providers.

Some providers allow anonymous access, while others require application credentials, delegated user authorization, or institutional identity.

The provider-authentication capability must allow authorized requests without exposing protected connection details to clients, unrelated organizations, or downstream scientific records.

Primary technical acceptance condition: Public and user-facing discovery responses must never disclose access tokens, API keys, refresh tokens, client secrets, private signing keys, or protected connection configuration.

This requirement applies to successful responses, errors, logs, caches, source exports, notebooks, generated citations, graph relationships, and public research publications.

Credential validity must remain independent of scientific source validity and source-use rights.

2. Identify the actual owning services

Before implementing authentication, inspect the repositories and running environment to determine where the relevant responsibilities currently reside.

Table 1. Proposed service responsibility boundaries
Responsibility Proposed logical owner Required verification
Human authentication Platform Core or approved identity provider Issuer, session, and principal contract
Project authorization Workspace and trusted policy service Authoritative owner and permission mapping
Provider configuration Unified Discovery integration registry Actual connection schema and lifecycle
Credential storage Approved secret-management service Storage, service access, and rotation controls
Provider protocol adapter Owning backend integration service Actual adapter source and supported grants
Outbound request policy Trusted backend and infrastructure Destination, DNS, TLS, and redirect controls
Source identity Library or authoritative source registry Canonical IDs and revisions
Source rights Library and research governance Actual permitted-use policy
Publication approval Workspace and Research governance Approved state transitions

These assignments describe the intended separation of responsibilities, not a verified production topology.

Do not create a new competing identity store, source registry, or credential database when an authoritative service already exists.

3. Define the authentication trust boundary

Authenticated research client
             |
             | Authorized discovery request
             v
     Unified Discovery backend
             |
             +-- Validate identity and project
             |
             +-- Authorize requested operation
             |
             +-- Select approved connection
             |
             +-- Resolve internal secret reference
             |
             +-- Enforce destination and scope
             |
             v
      Provider protocol adapter
             |
             | Credential attached server-side
             v
      Approved external provider
             |
             | Provider response
             v
      Validate source and rights
             |
             +-- Exclude protected fields
             +-- Preserve source identity
             +-- Classify incomplete coverage
             |
             v
       Sanitized research response

Clients must not supply raw credentials to search operations.

Clients must not be able to select arbitrary credentials by providing an internal secret identifier.

Provider source URLs are data. They must not automatically become authenticated outbound request destinations.

4. Select the appropriate authentication protocol

Table 2. Supported integration patterns to evaluate
Mode Appropriate use Security requirements
Anonymous Open metadata catalogs Provider restrictions and response validation still apply
API key Provider-specific application access Server-side storage, permitted destination, and rotation
OAuth client credentials Approved confidential service-to-service authorization Client authentication, audience, scope, and token lifetime
OAuth authorization code with PKCE Delegated user authorization Secure redirect handling, PKCE, state, and token binding to authorized context
Mutual TLS Providers requiring certificate-based identity Private key protection and certificate lifecycle
Federated institutional authorization Approved research-institution integrations Provider-specific federation and account-policy compliance

Do not equate OAuth authorization with user authentication. When identity information is required, use an appropriate identity protocol and independently validate its trust assumptions.

RFC 9700 prohibits use of the OAuth resource-owner password credentials grant and provides updated security guidance for authorization-code flows, token handling, and resource restrictions.

Actual integration modes and OAuth endpoints must be confirmed against provider documentation.

5. Define a versioned provider connection schema

A connection record should describe the approved provider and its permitted operations without storing recoverable credentials in ordinary application metadata.

Illustrative internal record:

{
  "schema_version": "example-1.0",
  "connection_id": "fixture-connection-001",
  "provider_id": "fixture-provider",
  "tenant_id": "synthetic-tenant",
  "authentication_mode": "oauth_client_credentials",
  "approved_origin": "https://provider.example.org",
  "allowed_operations": [
    "metadata_search"
  ],
  "secret_reference": "internal-secret-alias",
  "connection_revision": 1,
  "enabled": true,
  "review_status": "not_verified"
}

All identifiers and URLs in this example are synthetic.

The secret reference belongs only in trusted configuration and authorized operational records. It must not be returned to ordinary research clients or public source APIs.

5.1 Required invariants

  • Each connection has an authoritative identity and revision.
  • Its owning tenant or institution is explicit.
  • Permitted operations are constrained.
  • Credentials are retrieved through approved backend access.
  • Provider origins are configured through a trusted registry.
  • Connection updates require appropriate administrative authorization.
  • Revoked connections cannot initiate new provider operations.
  • Historical security and configuration changes are auditable.

6. Define the public connection projection

An authorized user may need to see whether an integration is available without seeing its private configuration.

Illustrative user-visible connection status:

{
  "provider_id": "fixture-provider",
  "display_name": "Synthetic Provider",
  "available_operations": [
    "metadata_search"
  ],
  "connection_status": "configured",
  "last_check_status": "not_tested"
}

This is not a real operational status response.

Internal identifiers, token values, private endpoint details, credential expiry information that exposes sensitive operational patterns, and secret-store locations should be excluded unless an approved administrative interface specifically requires them.

A provider’s configured status is not proof that the connection is currently usable.

7. Keep user authorization independent of provider authority

A user may have permission to search provider metadata without permission to administer the provider connection or download restricted content.

Evaluate the following separately:

  • The authenticated user or workload identity.
  • The tenant and project to which the request belongs.
  • The requested application operation.
  • The provider connection’s allowed operations.
  • The provider’s actual permission scope.
  • The source’s own access and reuse restrictions.

Do not allow a broadly privileged service credential to bypass narrow project-level permissions.

Cross-owner testing must verify that one tenant cannot select, use, or infer protected connection information belonging to another tenant.

8. Define the credential acquisition contract

A credential resolver should be accessible only from trusted backend code.

A proposed internal interface is:

resolve_credential(
    authenticated_service_identity,
    authorized_connection_id,
    intended_operation
) -> ProtectedCredentialHandle

The return type is conceptual. It should not imply that applications must receive a plaintext secret.

Where the secret-management technology supports it, use workload identity, nonexportable key material, or short-lived credential issuance.

The resolver should enforce:

  • Trusted service authorization.
  • Connection ownership.
  • Approved operation.
  • Credential lifecycle state.
  • Relevant expiry and revocation.
  • Audit requirements.

Do not expose a general-purpose secret-resolution endpoint to research clients.

9. Validate OAuth scope, audience, and lifetime

OAuth tokens should be constrained to the intended resource and actions where supported by the authorization server and resource server.

For applicable integrations, validate:

  • Authorization server identity.
  • Client authentication.
  • Requested scope.
  • Intended token audience or resource.
  • Token expiration.
  • Issuer and signature, where a self-contained token is validated.
  • Revocation or introspection behavior where applicable.
  • Delegated authorization context.
  • Refresh-token handling and rotation requirements.

The client must not assume that an opaque provider token can be decoded and trusted as a locally issued JWT.

Follow the actual provider’s token-validation and authorization contract.

10. Control provider destinations and redirects

Provider credentials should never be attached to arbitrary URLs obtained from client input, source metadata, or untrusted responses.

Use an approved provider registry and verify destinations before making an authenticated request.

Required safeguards include:

  • HTTPS and certificate validation.
  • Approved origins, routes, and ports.
  • DNS and resolved-address protections against internal network access.
  • Outbound network restrictions.
  • No unrestricted forwarding of authorization headers across redirects.
  • Explicit redirect-handling policy.
  • Request timeouts and response-size limits.
  • Protection against URL parsing ambiguities and encoded destination bypasses.

Important: String matching or URL parsing alone does not constitute complete server-side request forgery protection. Production checks must also consider DNS rebinding, redirection after resolution, proxy behavior, and network-layer enforcement.

11. Define the source-metadata boundary

The provider response may contain identifiers, titles, links, rights metadata, and other research information.

These fields must be validated before they are returned or stored.

Illustrative sanitized record:

{
  "source_id": "record-017",
  "provider_id": "fixture-provider",
  "title": "Synthetic Source",
  "source_revision": "v1",
  "rights_status": "metadata_permitted"
}

Recommended safeguards:

  • Positive field selection.
  • Required-field and type validation.
  • Provider identity reconciliation.
  • Source revision preservation.
  • Rights classification.
  • URL validation according to the use of the URL.
  • Content scanning for protected data where appropriate.
  • Separation of raw provider responses from public projections.

Allowlisting field names is necessary but insufficient when protected values can be embedded inside an otherwise permitted field. Use context-aware validation and exposure controls.

12. Define an illustrative API boundary

These example paths are not verified deployed endpoints.

Table 3. Proposed API operations
Example operation Purpose Authorization
GET /api/example/v1/providers List permitted provider capabilities Authorized user and tenant
GET /api/example/v1/providers/{id}/status Return sanitized connection availability Authorized user
POST /api/example/v1/discovery/search Execute permitted provider searches Project and operation policy
POST /api/example/v1/admin/connections Create approved connection configuration Privileged administrator
POST /api/example/v1/admin/connections/{id}/rotate Initiate approved credential replacement Privileged service administrator
POST /api/example/v1/admin/connections/{id}/revoke Disable provider access Privileged administrator or incident authority

Do not add these paths to production documentation until actual routes and contracts have been established.

12.1 Example search request

{
  "schema_version": "example-1.0",
  "provider_id": "fixture-provider",
  "query": "synthetic research topic",
  "requested_operation": "metadata_search",
  "max_results": 25
}

Trusted authorization and the permitted provider connection must be resolved on the server.

Do not accept a raw credential or secret-store reference in the public search request.

13. Define typed authentication failures

Table 4. Proposed provider-authentication failure codes
Code Meaning Required response
PROVIDER_NOT_CONFIGURED No approved connection exists Do not attempt credential acquisition
TENANT_DENIED Connection is outside requesting tenant Reject without disclosing private metadata
OPERATION_DENIED Operation exceeds authorized scope Reject before provider request
CONNECTION_REVOKED Connection is disabled or revoked Stop authenticated operations
CREDENTIAL_UNAVAILABLE Secret could not be acquired Preserve sanitized diagnostics
CREDENTIAL_EXPIRED Credential no longer valid Use approved renewal path
AUDIENCE_MISMATCH Token not intended for resource Reject token use
DESTINATION_DENIED Provider request targets an unapproved destination Do not send credential
REVISION_CONFLICT Connection configuration changed Reconcile current revision
SOURCE_INVALID Provider returned incomplete or malformed source metadata Reject or quarantine affected record
RIGHTS_UNVERIFIED Requested source use not established Hold downstream operation
PROVIDER_UNAVAILABLE Provider temporarily unavailable Use bounded recovery without credential disclosure

Actual HTTP mappings must reflect the deployed API and provider contract. RFC 9457 describes a standard structure for HTTP problem responses.

Error messages must not include secret values, internal connection strings, or private research information.

14. Implement a synthetic reference contract

This example models authorization preflight, destination restrictions, source validation, and public projection.

It does not exchange credentials or make HTTP requests.

Prepare the environment:

mkdir provider-auth-contract
cd provider-auth-contract

python3 -m venv .venv
source .venv/bin/activate

python --version

Save as provider_contract.py.

from dataclasses import dataclass
from urllib.parse import urlsplit


class ContractError(Exception):
    def __init__(self, code):
        self.code = code
        super().__init__(code)


@dataclass(frozen=True)
class Principal:
    tenant: str
    permissions: frozenset[str]


@dataclass(frozen=True)
class Connection:
    provider: str
    tenant: str
    operation: str
    approved_origin: str
    secret_ref: str
    enabled: bool = True
    revision: int = 1


PUBLIC_FIELDS = (
    "source_id",
    "provider_id",
    "title",
    "source_revision",
    "rights_status"
)


def preflight(
    principal,
    connection,
    operation,
    destination,
    expected_revision
):
    if principal.tenant != connection.tenant:
        raise ContractError("TENANT_DENIED")

    if (
        operation not in principal.permissions
        or operation != connection.operation
    ):
        raise ContractError("OPERATION_DENIED")

    if not connection.enabled:
        raise ContractError("CONNECTION_REVOKED")

    if expected_revision != connection.revision:
        raise ContractError("REVISION_CONFLICT")

    u = urlsplit(destination)
    origin = f"{u.scheme}://{u.netloc}"

    if (
        u.scheme != "https"
        or not u.hostname
        or u.username
        or u.password
        or u.fragment
        or origin != connection.approved_origin
        or u.port not in (None, 443)
    ):
        raise ContractError("DESTINATION_DENIED")

    return True


def project_source(raw, expected_provider):
    required = {
        "source_id",
        "provider_id",
        "title",
        "source_revision",
        "rights_status"
    }

    if any(
        not isinstance(raw.get(key), str)
        or not raw[key].strip()
        for key in required
    ):
        raise ContractError("SOURCE_INVALID")

    if raw["provider_id"] != expected_provider:
        raise ContractError("PROVIDER_MISMATCH")

    if raw["rights_status"] != "metadata_permitted":
        raise ContractError("RIGHTS_UNVERIFIED")

    return {
        key: raw[key]
        for key in PUBLIC_FIELDS
    }


P = Principal(
    "tenant-fixture",
    frozenset({"metadata_search"})
)

C = Connection(
    "fixture-provider",
    "tenant-fixture",
    "metadata_search",
    "https://provider.example.org",
    "secret-alias"
)

R = {
    "source_id": "record-017",
    "provider_id": "fixture-provider",
    "title": "Synthetic source",
    "source_revision": "v1",
    "rights_status": "metadata_permitted",
    "access_token": "FAKE_TOKEN",
    "secret_reference": "secret-alias"
}


if __name__ == "__main__":
    preflight(
        P,
        C,
        "metadata_search",
        "https://provider.example.org/search",
        expected_revision=1
    )

    print(project_source(R, C.provider))

The fixture rejects wrong-tenant requests, operations outside the declared permission set, revoked connections, stale connection revisions, and selected invalid destinations.

The source projection explicitly selects permitted fields and excludes the synthetic token and internal secret reference.

Security limitation: This code is a contract demonstration only. It does not implement trusted authentication, DNS resolution controls, redirect processing, token issuance, rate limiting, response-content scanning, or a secure secret store. The URL preflight must not be used as the sole SSRF defense in production.

15. Run the reference implementation

python provider_contract.py

Expected output:

{
    'source_id': 'record-017',
    'provider_id': 'fixture-provider',
    'title': 'Synthetic source',
    'source_revision': 'v1',
    'rights_status': 'metadata_permitted'
}

The output excludes access_token and secret_reference.

It does not establish that user-supplied text in permitted fields is safe for public release. Production validation must address content-level disclosure and source rights.

16. Implement contract regression tests

Save as test_provider_contract.py.

import unittest
from dataclasses import replace

from provider_contract import (
    ContractError,
    Principal,
    Connection,
    P,
    C,
    R,
    PUBLIC_FIELDS,
    preflight,
    project_source
)


class ProviderContractTests(unittest.TestCase):

    def assert_code(self, expected, action):
        with self.assertRaises(
            ContractError
        ) as caught:
            action()

        self.assertEqual(
            caught.exception.code,
            expected
        )

    def run_preflight(
        self,
        principal=P,
        connection=C,
        operation="metadata_search",
        url="https://provider.example.org/search",
        revision=1
    ):
        return preflight(
            principal,
            connection,
            operation,
            url,
            revision
        )

    def test_valid_preflight(self):
        self.assertTrue(
            self.run_preflight()
        )

    def test_wrong_tenant(self):
        other = replace(
            P,
            tenant="other-tenant"
        )

        self.assert_code(
            "TENANT_DENIED",
            lambda: self.run_preflight(
                principal=other
            )
        )

    def test_unapproved_operation(self):
        self.assert_code(
            "OPERATION_DENIED",
            lambda: self.run_preflight(
                operation="content_download"
            )
        )

    def test_revoked_connection(self):
        revoked = replace(
            C,
            enabled=False
        )

        self.assert_code(
            "CONNECTION_REVOKED",
            lambda: self.run_preflight(
                connection=revoked
            )
        )

    def test_stale_revision(self):
        self.assert_code(
            "REVISION_CONFLICT",
            lambda: self.run_preflight(
                revision=2
            )
        )

    def test_http_destination_rejected(self):
        self.assert_code(
            "DESTINATION_DENIED",
            lambda: self.run_preflight(
                url="http://provider.example.org/search"
            )
        )

    def test_other_host_rejected(self):
        self.assert_code(
            "DESTINATION_DENIED",
            lambda: self.run_preflight(
                url="https://evil.example.org/"
            )
        )

    def test_embedded_userinfo_rejected(self):
        self.assert_code(
            "DESTINATION_DENIED",
            lambda: self.run_preflight(
                url=(
                    "https://user@provider.example.org/search"
                )
            )
        )

    def test_valid_public_projection(self):
        result = project_source(
            R,
            C.provider
        )

        self.assertEqual(
            set(result),
            set(PUBLIC_FIELDS)
        )

        self.assertNotIn(
            "FAKE_TOKEN",
            str(result)
        )

    def test_missing_source_identifier(self):
        broken = {
            **R,
            "source_id": ""
        }

        self.assert_code(
            "SOURCE_INVALID",
            lambda: project_source(
                broken,
                C.provider
            )
        )

    def test_wrong_source_provider(self):
        broken = {
            **R,
            "provider_id": "other-provider"
        }

        self.assert_code(
            "PROVIDER_MISMATCH",
            lambda: project_source(
                broken,
                C.provider
            )
        )

    def test_rights_unverified(self):
        broken = {
            **R,
            "rights_status": "unknown"
        }

        self.assert_code(
            "RIGHTS_UNVERIFIED",
            lambda: project_source(
                broken,
                C.provider
            )
        )

    def test_internal_reference_excluded(self):
        result = project_source(
            R,
            C.provider
        )

        self.assertNotIn(
            "secret_reference",
            result
        )


if __name__ == "__main__":
    unittest.main()

17. Execute the test suite and interpret its limits

python -m unittest -v test_provider_contract.py

Reference validation: Thirteen synthetic unit tests were executed successfully in the preparation environment. This is local fixture evidence, not platform CI or deployed-system acceptance.

Ran 13 tests

OK

The tests cover:

  • Valid authorization preflight.
  • Wrong-tenant denial.
  • Unapproved operation denial.
  • Revoked connection rejection.
  • Stale connection revision.
  • Non-HTTPS destination rejection.
  • Unapproved host rejection.
  • URL user-information rejection.
  • Public field allowlisting.
  • Missing source identifier.
  • Provider identity mismatch.
  • Unknown source-use rights.
  • Internal secret-reference exclusion.

The suite does not validate real credentials, provider APIs, DNS or network protections, token expiry, rotation, revocation at the provider, logs, caches, or actual authenticated research sessions.

18. Validate production secret isolation

Security acceptance must inspect the complete application data flow rather than a single response serializer.

Table 5. Required confidentiality checks
Surface Required negative test
Public API No credential or protected connection metadata
Authenticated API No access beyond permitted connection status
Browser bundle No provider secrets in rendered HTML or JavaScript
Local browser storage No backend provider credentials persisted by client
HTTP errors No tokens, private configuration, or unredacted traces
Application logs No secret values or protected request headers
Cache No unauthorized sharing across tenant and permission boundaries
Library No credential material stored with source records
Knowledge graph No protected connection data in public projections
Notebooks No embedded credentials in reproducibility artifacts
Publications No secrets or private integration configuration

Use synthetic credential sentinels, controlled security fixtures, and authorized staging environments to test these boundaries.

Passing a response-field test does not automatically demonstrate that logs, traces, exported archives, or cache entries are safe.

19. Design idempotent connection mutations

Provider discovery searches may be read-only, but connection configuration, credential changes, approvals, and revocations are state-changing operations.

Mutation endpoints should require:

  • Trusted administrative authorization.
  • Connection ID and current revision.
  • Operation idempotency key where appropriate.
  • Request fingerprint or equivalent duplicate-detection mechanism.
  • Defined transaction or state-transition rules.
  • Auditable actor and outcome.
  • Consistent behavior when retrying after timeouts.

A duplicate request with the same idempotency key and identical payload should not produce unintended duplicate connection records or rotation jobs.

Reuse of the same idempotency key with a different payload should produce an explicit conflict under the defined contract.

Revocation may require strict sequencing that differs from ordinary configuration updates, especially during credential compromise.

20. Handle partial failures and credential rotation

Credential replacement can involve multiple independently managed systems:

Provider credential issuance
             |
             v
Trusted secret storage
             |
             v
Application connection revision
             |
             v
Integration validation
             |
             v
Old credential retirement
             |
             v
Audit and recovery receipt

These steps may not commit as a single database transaction.

Define an explicit operation state machine, for example:

REQUESTED
    |
    v
REPLACEMENT_CREATED
    |
    v
SECRET_STORED
    |
    v
CONNECTION_UPDATED
    |
    v
NEW_CREDENTIAL_VERIFIED
    |
    v
OLD_CREDENTIAL_REVOKED
    |
    v
COMPLETE

Failures require reconciliation against the last confirmed durable state.

Do not blindly retry credential issuance or overwrite a working credential reference when the original operation’s outcome is unknown.

For suspected compromise, incident response may require immediate restriction or revocation rather than normal planned rotation.

21. Define audit and observability contracts

Operational events should record meaningful state transitions without disclosing credential material.

Table 6. Proposed audit events
Event Meaning
provider.connection.created Approved connection configuration created
provider.connection.updated Versioned configuration changed
provider.auth.requested Provider operation requested
provider.auth.denied Authorization or policy check rejected operation
provider.auth.completed Provider operation completed with classified result
provider.credential.rotated Approved credential rotation completed
provider.connection.revoked Connection disabled or access revoked
provider.source.accepted Source passed configured metadata and rights checks
provider.security.incident Credential or access-control concern escalated

Where appropriate, audit records may include a sanitized operation ID, provider ID, connection revision, trusted actor reference, and result classification.

Never include raw credentials, provider authorization headers, private signing keys, or unrestricted source content in ordinary logs.

22. Preserve scientific provenance independently of authentication

Source provenance should remain valid when credentials are rotated, revoked, or replaced.

A governed source record may preserve:

  • Provider identity.
  • Authoritative source identifier.
  • Source revision or publication version.
  • Retrieval timestamp.
  • Provider API or schema revision.
  • Permitted source reference.
  • Rights and permitted-use classification.
  • Processing or transformation history.
  • Appropriate content digests.

It should not contain the credential that was used to retrieve the source.

Successful provider authentication also does not establish that a scientific claim derived from the retrieved source is valid. Scientific review remains a separate governance boundary.

23. Define the production integration test matrix

Table 7. Required release tests beyond the synthetic fixture
Test Expected result
Actual provider authentication Authorized request succeeds under documented provider contract
Missing credential Typed failure without secret disclosure
Expired token Safe rejection or approved renewal
Wrong audience Token cannot be used against unrelated resource
Wrong tenant Connection unavailable to unrelated owner
Revoked permission Previously allowed operation is denied
Scope mismatch Disallowed content operation rejected
Unsafe redirect Credential not forwarded to unapproved target
DNS rebinding or internal destination Outbound request blocked by network policy
Malformed provider response Record rejected or quarantined
Secret embedded in permitted metadata field Protected value not disclosed publicly
Unknown rights Restricted reuse or publication held
Duplicate create or rotation request Idempotent or explicitly conflicting behavior
Concurrent connection update Revision integrity preserved
Service restart Authorized configuration and safe secret access preserved
Migration and restore Connection state and revocations preserved without exposing secrets
Public and research exports No protected connection details
Logging and observability No secret-bearing diagnostic output

Run destructive and credential-lifecycle tests only against authorized, isolated environments.

Use synthetic principals and credentials when testing cross-owner denial.

24. Prepare a release acceptance receipt

Release evidence must identify exactly what was tested and against which code and deployment revisions.

{
  "schema_version": "example-1.0",
  "capability": "unified_discovery_provider_authentication",
  "classification": "proposed_contract",
  "implementation": {
    "repository": null,
    "commit": null,
    "provider_adapter": null,
    "api_revision": null,
    "deployed_image_digest": null
  },
  "local_reference": {
    "synthetic_tests": 13,
    "local_result": "PASS",
    "real_provider_calls": 0
  },
  "acceptance": {
    "trusted_user_identity": "not_tested",
    "service_identity": "not_tested",
    "provider_authentication": "not_tested",
    "scope_and_audience": "not_tested",
    "tenant_isolation": "not_tested",
    "secret_storage": "not_tested",
    "token_expiration": "not_tested",
    "credential_rotation": "not_tested",
    "credential_revocation": "not_tested",
    "outbound_destination_safety": "not_tested",
    "response_confidentiality": "not_tested",
    "logging_confidentiality": "not_tested",
    "idempotency": "not_tested",
    "concurrent_updates": "not_tested",
    "database_recovery": "not_tested",
    "source_provenance": "not_tested",
    "rights_enforcement": "not_tested",
    "browser_acceptance": "not_tested",
    "production_runtime": "not_tested"
  },
  "release_decision": "NO_GO"
}

The locally executed synthetic tests do not constitute provider, staging, or production acceptance.

Never attach actual credential values or recoverable secret material to an acceptance receipt.

25. Sustainable Catalyst cross-application integration

Table 8. Proposed platform integration requirements
Application Intended integration boundary
Unified Discovery Execute authorized provider operations and return validated, sanitized source records
Platform Core Provide trusted identity, authorization, and service-identity foundations
Library Store source identities, rights, and provenance without provider credentials
Workspace Manage project ownership, permitted integrations, and review decisions
Research Lab Evaluate scientific suitability of retrieved evidence
Workbench Consume authorized source artifacts without embedding authentication secrets in notebooks
Site Intelligence Use provider access for approved imagery and geospatial evidence where supported
Decision Studio Reference evidence without inheriting upstream provider credentials
Research Publish reviewed research with source traceability and no protected connection configuration

These responsibilities represent the intended architecture and must be reconciled with the actual implemented service boundaries.

26. Required implementation audit

Before labeling this developer reference implementation-verified, attach evidence for:

  • The exact owning repositories and commits.
  • Actual provider registry, connection schemas, and adapter code.
  • Real request, response, and error contracts.
  • Trusted user and service identities.
  • Secret storage and credential-access permissions.
  • Actual OAuth or API-key lifecycle.
  • Tenant and project authorization.
  • Destination, TLS, DNS, and redirect controls.
  • Public projection and source validation.
  • Credential confidentiality across caches, logs, exports, and publications.
  • Mutation idempotency and revision controls.
  • Migration, backup, restore, and revocation persistence.
  • CI tests tied to the implementation commit.
  • Isolated staging build and image digest.
  • Authenticated API and browser acceptance.
  • Known disabled features and unresolved security risks.

A public page reporting a provider as connected is not sufficient evidence that the backend authorization and credential-lifecycle requirements have passed.

27. Technical acceptance and release gates

Table 9. Provider authentication release gates
Gate Required evidence Consequence of failure
Implementation identity Repository, commit, deployed revision NO-GO
Authentication contract Provider protocol integration acceptance NO-GO
Trusted authorization User, project, operation, and tenant tests NO-GO
Secret isolation Approved storage and negative disclosure tests NO-GO
Destination control Network, TLS, DNS, and redirect acceptance NO-GO
Credential lifecycle Expiry, revocation, and rotation acceptance NO-GO
Public projection Source responses free of protected connection data NO-GO
Source identity and rights Authoritative identity and permitted-use checks NO-GO for downstream use
Mutation safety Idempotency, concurrency, and transaction evidence NO-GO for writes
Recovery Verified backup, migration, restore, and rollback behavior NO-GO for persistent changes
Runtime acceptance Authenticated API and browser evidence NO-GO
Publication governance Separate scientific, rights, and editorial approval NO-GO for public release

Connection configuration, read-only provider search, privileged credential changes, and public research publishing may require separate release decisions.

Acceptance of read-only discovery does not automatically authorize administrative connection mutations or publication.

28. Technical references

  1. Hardt, D. (2012). The OAuth 2.0 Authorization Framework. RFC 6749. Available at: RFC 6749.
  2. Jones, M. and Hardt, D. (2012). The OAuth 2.0 Authorization Framework: Bearer Token Usage. RFC 6750. Available at: RFC 6750.
  3. Sakimura, N., Bradley, J. and Agarwal, N. (2015). Proof Key for Code Exchange by OAuth Public Clients. RFC 7636. Available at: RFC 7636.
  4. Campbell, B. et al. (2020). OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens. RFC 8705. Available at: RFC 8705.
  5. Lodderstedt, T. et al. (2025). Best Current Practice for OAuth 2.0 Security. RFC 9700. Available at: RFC 9700.
  6. Fielding, R., Nottingham, M. and Reschke, J. (2022). HTTP Semantics. RFC 9110. Available at: RFC 9110.
  7. Nottingham, M., Wilde, E. and Dalal, S. (2023). Problem Details for HTTP APIs. RFC 9457. Available at: RFC 9457.
  8. OWASP Foundation (n.d.). Secrets Management Cheat Sheet. Available at: OWASP Secrets Management.
  9. OWASP Foundation (n.d.). Server-Side Request Forgery Prevention Cheat Sheet. Available at: OWASP SSRF Prevention.
  10. OWASP Foundation (2023). API Security Top 10. Available at: OWASP API Security.
  11. World Wide Web Consortium (W3C) (2013). PROV-O: The PROV Ontology. Available at: W3C PROV-O.
  12. Python Software Foundation (n.d.). unittest — Unit Testing Framework. Available at: Python documentation.

29. Completion and verification record

Table 10. Required provider authentication developer acceptance
Field Required record
Capability identifier Actual provider authentication integration
Owning repository Repository, source location, and implementation commit
Provider contract Actual provider, supported grant, and API revision
Connection model Versioned schema and ownership contract
Identity and authorization Actual issuer, service identity, and permitted scopes
Credential storage Secret-store identity and approved access controls, without secret values
Network controls Approved destinations, TLS, and redirect tests
Public response Credential and private-configuration disclosure tests
Source provenance Provider source IDs and revisions preserved
Rights Applicable provider and source-use permissions
Audit and logging Sanitized event and observability review
Mutation idempotency Executed duplicate-request and concurrency tests
Credential lifecycle Rotation, expiry, and revocation tests
Persistence and migration Database and schema revision evidence
Recovery Backup, restore, and rollback or reconciliation evidence
CI Executed tests tied to actual source commit
Staging Deployed image digest and environment-isolation evidence
Browser acceptance Authenticated behavior and public projection review
Security approval Actual reviewer, decision, and date
Scientific and publication review Independent downstream acceptance where applicable
Outstanding limitations Unresolved security, integration, rights, and recovery risks

Technical completion criterion: Provider authentication is implementation-verified when trusted identities and permissions select only approved provider connections; credentials remain protected throughout acquisition, use, rotation, and revocation; privileged requests cannot be redirected to unauthorized destinations; returned source records preserve authoritative identities and permitted-use context without secret disclosure; and the implemented service has passed applicable security, integration, persistence, and recovery acceptance.

Scientific limitation: Provider authentication establishes access to an external service. It does not establish the reliability of returned scientific material, the right to redistribute that material, or approval of research conclusions derived from it. Those decisions require independent source, rights, and scientific review.

Current implementation status: Proposed service ownership, credential and authorization boundaries, connection and response contracts, authentication-mode requirements, typed failures, synthetic Python reference implementation, thirteen locally executed unit tests, security acceptance matrix, audit requirements, and release gates documented. No specific Sustainable Catalyst Unified Discovery provider connector, production OAuth implementation, secret manager, provider registry, or Research/Library integration is certified without exact implementation anchors, authenticated integration tests, runtime security evidence, and formal release approval.

Scroll to Top