Worked Examples
Apply provider authentication — Unified Discovery
Separate authorized service credentials from user-visible source metadata.
Application: Unified Discovery
Cross-application area: Provider Integrations / Platform Core / Library / Research / Security
Classification: Practical Guides / Provider Authentication
Audience: Researchers, platform administrators, integration developers, security engineers, DevOps engineers, and technical reviewers
Technical level: Intermediate to advanced
Reference environment: Python 3.10 or later; standard library
Relevant standards: OAuth 2.0, RFC 6750, RFC 9700, HTTP Semantics, and OWASP Secrets Management
Primary outputs: Authorized provider connection, scoped credential handling, sanitized discovery response, audit evidence, rotation procedure, and security acceptance record
Estimated reading time: 16–20 minutes; 35–45 minutes including practical exercises
1. Purpose and expected outcome
Unified Discovery may query public and restricted scientific data providers. Some providers permit anonymous search; others require API keys, OAuth access tokens, institutional credentials, or delegated user authorization.
Provider authentication must enable authorized discovery without exposing privileged credentials or protected configuration to researchers, public visitors, client-side applications, or unrelated organizations.
The central operational requirement is to separate:
- The human user’s authenticated identity.
- The user’s permission to perform a discovery action.
- The provider connection’s authorized identity.
- The credential used to authenticate to the provider.
- The scientific source metadata returned by the provider.
- The rights governing storage and use of those results.
Primary acceptance condition: Public and user-facing discovery responses must never expose provider access tokens, API keys, client secrets, refresh tokens, private signing keys, or protected connection details.
Successful provider authentication does not establish that a user is authorized to access every provider record or that returned research materials may be stored, redistributed, or published.
2. Identify the authentication model
Different providers require different forms of authentication. Do not impose a single OAuth workflow on every research provider.
| Mode | Typical use | Important boundary |
|---|---|---|
| Anonymous | Open public catalogs | No credential required, but provider limits and rights still apply |
| API key | Provider-specific application access | Key remains server-side and restricted to authorized provider operations |
| OAuth client credentials | Confidential service-to-service access where supported | Application authority must not be confused with user-delegated authority |
| OAuth authorization code with PKCE | Delegated access involving a user authorization flow | Consent, scopes, token audience, and user binding must be preserved |
| Mutual TLS or workload identity | Supported institutional or machine-to-machine integrations | Private key material and workload trust remain protected |
| Institutional federation | Provider access through supported institutional identity mechanisms | Use the provider’s approved federation contract |
These are possible integration models, not a verified list of Sustainable Catalyst provider connectors.
OAuth 2.0 Security Best Current Practice (RFC 9700) updates the security guidance for OAuth deployments. In particular, the resource-owner password credentials grant must not be used.
3. Establish the provider and research context
Before configuring authentication, identify the provider and its authorized institutional use.
Record:
- Provider name and canonical identity.
- Approved API or service origin.
- Provider documentation and authentication requirements.
- Institutional agreement or account ownership, where relevant.
- Permitted discovery operations.
- Required authentication scopes or permissions.
- Credential owner and operational custodian.
- Responsible Sustainable Catalyst application.
- Authorized organizations or projects.
- Rate limits, retention rules, and data-use restrictions.
- Credential expiry and rotation requirements.
- Provider terms governing redistribution and caching.
A provider credential must not be reused for an unrelated institution, tenant, or project unless the provider’s agreement and the platform authorization model explicitly permit that use.
4. Define the trust boundaries
Provider credentials should remain within trusted backend infrastructure.
Authenticated researcher
|
| Discovery request
v
Unified Discovery interface
|
| No provider secrets
v
Trusted Discovery backend
|
+-- Verify user and project authorization
|
+-- Select approved provider connection
|
+-- Retrieve credential from trusted storage
|
+-- Enforce provider scope and destination
|
v
Approved external provider
|
| Source metadata response
v
Provider response validation
|
+-- Validate schema and source identity
|
+-- Remove protected connection data
|
+-- Preserve permitted source provenance
|
v
Authorized sanitized response
The client should not be allowed to supply an arbitrary authentication destination or choose a credential outside its permitted connection scope.
Do not place provider secrets inside HTML, JavaScript bundles, browser storage, URL query parameters, source metadata, or publicly accessible WordPress configuration objects.
5. Separate user authorization from provider authentication
Provider authentication and platform authorization are separate controls.
Consider:
User:
Authorized for Project P01
Provider connection:
Authorized to search Provider A
Requested operation:
Search Provider A for public metadata
Both conditions must be satisfied:
- The authenticated user is permitted to perform the discovery operation in the intended project or organization.
- The provider connection is authorized to execute the requested provider operation.
A service credential may have broader provider permissions than an individual user. That does not entitle the backend to disclose all accessible provider content to every user.
Similarly, a user may have permission to search metadata without permission to retrieve full documents.
Apply object-level access and data-use checks independently of whether the provider accepts the credential.
6. Select the minimum necessary permission scope
Authentication scopes should correspond to the exact operations being performed.
| Capability | Potential permission | Risk if overprivileged |
|---|---|---|
| Search public metadata | Metadata search | Unnecessary exposure to private content scopes |
| Read permitted restricted metadata | Restricted metadata access | Cross-project disclosure |
| Download full content | Content retrieval | Unauthorized copying or retention |
| Modify provider records | Write or administrative scope | External data corruption |
| Manage provider access | Credential or account administration | Privilege escalation or credential compromise |
Actual provider scope names must come from provider documentation.
Do not infer that a general read scope permits downloading, redistributing, or publishing every result.
7. Store credentials in trusted secret storage
Credentials must be stored and accessed using controls appropriate to their sensitivity.
Preferred properties include:
- Dedicated secret storage or approved workload-credential facilities.
- Encryption at rest and in transit.
- Access limited to the required service identity.
- Separate production and staging credentials.
- Auditable secret access.
- Revocation and rotation procedures.
- Controlled exposure to deployment and CI environments.
- Secret scanning and incident-response integration.
Environment variables may be used for some deployments, but they do not by themselves constitute a complete secret-management system. Their exposure through debugging, process inspection, diagnostic dumps, or deployment tooling must be considered.
Never commit credentials to Git, place them in public knowledge-base examples, or include them in screenshots and incident tickets.
8. Keep credential references distinct from source metadata
A provider connection may need an internal credential reference.
That reference should be governed separately from the source metadata returned to the user.
Illustrative internal connection record:
{
"connection_id": "synthetic-provider-connection",
"provider_id": "synthetic-provider",
"authentication_mode": "oauth_client_credentials",
"secret_reference": "internal-secret-alias",
"allowed_operations": [
"metadata_search"
],
"tenant_scope": "synthetic-tenant",
"connection_state": "configured"
}
This is a proposed internal contract. The secret reference should not appear in a public response, even when it is only an alias rather than a plaintext secret.
An illustrative public source response:
{
"source_id": "synthetic-source-001",
"provider_id": "synthetic-provider",
"title": "Synthetic Research Record",
"source_revision": "v1",
"source_reference": "https://example.org/record-001",
"rights_status": "review_required"
}
The public response contains source metadata, not the credential or internal connection configuration.
9. Acquire and use provider tokens safely
For providers supporting OAuth client credentials, an authorized confidential client may request an access token under the provider’s documented protocol.
For providers requiring user-delegated authorization, use the supported authorization-code flow and current applicable security protections.
Token handling must account for:
- Trusted authorization server identity.
- Appropriate token audience.
- Minimum required scopes.
- Token expiration.
- Provider-supported revocation or refresh behavior.
- Secure transport.
- Token storage and caching partitioned by appropriate security context.
- Prevention of replay or token substitution where applicable.
Use approved provider origins and TLS verification. Do not disable certificate verification to make an authentication failure disappear.
RFC 6750 describes bearer-token usage. Because possession of a bearer token can be sufficient for its use, such tokens require strong confidentiality controls.
10. Prevent unsafe provider destinations
A trusted backend must not accept arbitrary URLs supplied by a client as destinations for privileged provider credentials.
For example, the following design is unsafe:
Client supplies URL
|
v
Backend attaches service credential
|
v
Backend sends request to arbitrary destination
This could expose the credential to an unauthorized host.
Use an approved provider registry and validate destinations, redirects, and connection behavior under a defined outbound network policy.
In particular:
- Do not automatically forward authorization headers across untrusted redirects.
- Do not attach credentials to arbitrary source URLs.
- Validate actual host and network destinations.
- Block requests to private or internal destinations unless explicitly authorized for the integration.
- Apply timeouts and bounded response sizes.
- Separate provider authentication endpoints from source-document references.
Source URLs contained in provider metadata must not be treated as trusted credential destinations.
11. Classify provider authentication failures
| Condition | Possible meaning | Safe response |
|---|---|---|
| 401 Unauthorized | Missing, expired, or invalid authentication | Check the credential or authorized reauthentication path |
| 403 Forbidden | Authenticated identity lacks required permission | Review scopes and provider agreement; do not bypass |
| 429 Too Many Requests | Provider limit exceeded | Respect rate limits and Retry-After |
| Invalid scope | Requested permission unsupported or not granted | Correct configuration through approved provider administration |
| Expired token | Token lifetime elapsed | Renew through documented flow |
| Revoked credential | Previously issued credential no longer valid | Stop using it; obtain newly authorized credentials |
| Provider unavailable | Authentication server or dependency failed | Report unavailable connection and use bounded recovery |
| Audience mismatch | Token intended for a different resource | Reject use of mismatched token |
| Tenant mismatch | Connection not authorized for requesting tenant | Deny without exposing credential metadata |
Exact provider errors and OAuth error values differ by integration. Inspect actual provider documentation and the deployed adapter contract.
Do not blindly retry rejected authentication attempts. Authentication failures may require configuration correction, explicit reauthorization, or security review.
12. Rotate and revoke provider credentials
Credential rotation should preserve service continuity without extending access to a compromised or expired secret.
A proposed rotation workflow is:
- Identify the owning provider connection and credential custodian.
- Determine why rotation is required.
- Review dependent services and authorized environments.
- Create or request replacement credentials through the provider’s approved mechanism.
- Store the replacement in trusted secret storage.
- Update the authorized backend credential reference.
- Test the new credential with the minimum permitted operation.
- Verify sanitized responses and authorization boundaries.
- Revoke the previous credential when the migration is complete and policy permits.
- Record the rotation event, outcome, and outstanding dependencies.
For suspected compromise, incident-response procedures may require immediate revocation rather than an ordinary overlapping rotation window.
Never display old and new credentials together in a support article, audit receipt, or public deployment log.
13. Validate the public-response boundary
Provider responses and internal connection records should be projected into an explicitly allowed public or user-visible schema.
Prefer positive field selection over attempting to remove a long, changing list of prohibited fields.
For example, an allowlist may contain:
- Public source identifier.
- Provider identifier.
- Permitted source title.
- Source revision.
- Permitted source reference.
- Rights classification.
- Search or source status that may be disclosed.
It should exclude:
- API keys and access tokens.
- Client and refresh secrets.
- Private signing keys.
- Internal credential references.
- Private connection URLs.
- Secret-bearing request headers.
- Internal exception traces.
- Protected tenant and account details.
An HTTP 200 response is not acceptable when its body leaks credential material or protected connection metadata.
14. Prepare a synthetic authentication exercise
The reference fixture demonstrates:
- An authorized tenant and operation.
- A server-held synthetic credential.
- A permitted source-metadata response.
- A restricted public projection.
- Rejection of cross-tenant and unapproved operations.
- Credential expiration and revocation checks.
The fixture uses no real credentials and performs no network activity.
15. Implement the synthetic authentication boundary
Prepare a local Python 3.10 or later environment:
mkdir discovery-provider-auth
cd discovery-provider-auth
python3 -m venv .venv
source .venv/bin/activate
python --version
Save the following as provider_auth.py.
from dataclasses import dataclass
from datetime import datetime, timezone
import json
class AuthError(Exception):
def __init__(self, code):
super().__init__(code)
self.code = code
@dataclass(frozen=True)
class Principal:
tenant_id: str
allowed_operations: frozenset[str]
@dataclass(frozen=True)
class Connection:
provider_id: str
tenant_id: str
allowed_operations: frozenset[str]
credential_id: str
revoked: bool = False
@dataclass(frozen=True)
class Credential:
credential_id: str
secret: str
expires_at: datetime
PUBLIC_FIELDS = frozenset({
"source_id",
"provider_id",
"title",
"source_revision",
"source_reference",
"rights_status"
})
def authorize(
principal,
connection,
credential,
operation,
now
):
if (
not principal.tenant_id
or principal.tenant_id != connection.tenant_id
):
raise AuthError("TENANT_ACCESS_DENIED")
if (
operation not in principal.allowed_operations
or operation not in connection.allowed_operations
):
raise AuthError("OPERATION_ACCESS_DENIED")
if connection.revoked:
raise AuthError("CONNECTION_REVOKED")
if credential.credential_id != connection.credential_id:
raise AuthError("CREDENTIAL_MISMATCH")
if not credential.secret:
raise AuthError("CREDENTIAL_MISSING")
if now.tzinfo is None or credential.expires_at.tzinfo is None:
raise AuthError("INVALID_TIME_CONTEXT")
if now >= credential.expires_at:
raise AuthError("CREDENTIAL_EXPIRED")
return True
def public_projection(record):
required = {
"source_id",
"provider_id",
"title",
"source_revision"
}
if not required.issubset(record):
raise AuthError("SOURCE_SCHEMA_INVALID")
return {
key: record[key]
for key in sorted(PUBLIC_FIELDS)
if key in record
}
def synthetic_discovery(
principal,
connection,
credential,
now
):
authorize(
principal,
connection,
credential,
"metadata_search",
now
)
# Fixture only: no provider connection
# or real credential exchange occurs.
internal_record = {
"source_id": "synthetic-source-001",
"provider_id": connection.provider_id,
"title": "Synthetic Research Record",
"source_revision": "v1",
"source_reference": (
"https://example.org/record-001"
),
"rights_status": "review_required",
"access_token": credential.secret,
"client_secret": "synthetic-private-config",
"internal_connection_id": connection.credential_id
}
return public_projection(internal_record)
def main():
now = datetime(
2026, 11, 14, 12, 0,
tzinfo=timezone.utc
)
principal = Principal(
tenant_id="synthetic-tenant",
allowed_operations=frozenset({
"metadata_search"
})
)
connection = Connection(
provider_id="synthetic-provider",
tenant_id="synthetic-tenant",
allowed_operations=frozenset({
"metadata_search"
}),
credential_id="synthetic-key-reference"
)
credential = Credential(
credential_id="synthetic-key-reference",
secret="SYNTHETIC_DO_NOT_USE",
expires_at=datetime(
2026, 11, 15, 12, 0,
tzinfo=timezone.utc
)
)
response = synthetic_discovery(
principal,
connection,
credential,
now
)
print(json.dumps({
"classification": "synthetic",
"public_response": response,
"credential_exposed": (
credential.secret
in json.dumps(response)
),
"actual_provider_authentication": "NOT_TESTED",
"trusted_identity": "NOT_TESTED",
"production_acceptance": "NOT_TESTED"
}, indent=2))
if __name__ == "__main__":
main()
The example demonstrates a strict separation between internal credential data and the user-facing source record.
Security limitation: The synthetic fixture deliberately places a fake secret in an internal dictionary to demonstrate the public projection. A production implementation must not rely on untrusted provider data to determine authorization or pass real credentials into generic metadata serialization routines.
The module does not implement OAuth, a secret manager, certificate validation, a network client, or a production authentication service.
16. Execute the reference example
python provider_auth.py
Expected outcome:
Classification:
synthetic
Authorized operation:
metadata_search
Credential exposed:
false
Actual provider authentication:
NOT_TESTED
Trusted identity:
NOT_TESTED
Production acceptance:
NOT_TESTED
The synthetic public response includes permitted source fields only.
It does not include the synthetic access token, internal connection identifier, or client-secret field.
17. Implement security regression tests
Save the following as test_provider_auth.py.
from dataclasses import replace
from datetime import datetime, timezone, timedelta
import json
import unittest
from provider_auth import (
AuthError,
Principal,
Connection,
Credential,
authorize,
public_projection,
synthetic_discovery
)
NOW = datetime(
2026, 11, 14, 12, 0,
tzinfo=timezone.utc
)
PRINCIPAL = Principal(
"synthetic-tenant",
frozenset({"metadata_search"})
)
CONNECTION = Connection(
"synthetic-provider",
"synthetic-tenant",
frozenset({"metadata_search"}),
"synthetic-key-reference"
)
CREDENTIAL = Credential(
"synthetic-key-reference",
"SYNTHETIC_DO_NOT_USE",
NOW + timedelta(hours=1)
)
class ProviderAuthenticationTests(unittest.TestCase):
def assert_code(self, code, action):
with self.assertRaises(AuthError) as caught:
action()
self.assertEqual(caught.exception.code, code)
def test_authorized(self):
self.assertTrue(
authorize(
PRINCIPAL, CONNECTION, CREDENTIAL,
"metadata_search", NOW
)
)
def test_wrong_tenant(self):
wrong = replace(
PRINCIPAL,
tenant_id="other-tenant"
)
self.assert_code(
"TENANT_ACCESS_DENIED",
lambda: authorize(
wrong, CONNECTION, CREDENTIAL,
"metadata_search", NOW
)
)
def test_unapproved_operation(self):
self.assert_code(
"OPERATION_ACCESS_DENIED",
lambda: authorize(
PRINCIPAL, CONNECTION, CREDENTIAL,
"content_download", NOW
)
)
def test_revoked_connection(self):
revoked = replace(CONNECTION, revoked=True)
self.assert_code(
"CONNECTION_REVOKED",
lambda: authorize(
PRINCIPAL, revoked, CREDENTIAL,
"metadata_search", NOW
)
)
def test_wrong_credential(self):
other = replace(
CREDENTIAL,
credential_id="other-key"
)
self.assert_code(
"CREDENTIAL_MISMATCH",
lambda: authorize(
PRINCIPAL, CONNECTION, other,
"metadata_search", NOW
)
)
def test_missing_secret(self):
empty = replace(CREDENTIAL, secret="")
self.assert_code(
"CREDENTIAL_MISSING",
lambda: authorize(
PRINCIPAL, CONNECTION, empty,
"metadata_search", NOW
)
)
def test_expired_credential(self):
expired = replace(
CREDENTIAL,
expires_at=NOW - timedelta(seconds=1)
)
self.assert_code(
"CREDENTIAL_EXPIRED",
lambda: authorize(
PRINCIPAL, CONNECTION, expired,
"metadata_search", NOW
)
)
def test_expiration_boundary(self):
boundary = replace(
CREDENTIAL,
expires_at=NOW
)
self.assert_code(
"CREDENTIAL_EXPIRED",
lambda: authorize(
PRINCIPAL, CONNECTION, boundary,
"metadata_search", NOW
)
)
def test_missing_source_fields(self):
self.assert_code(
"SOURCE_SCHEMA_INVALID",
lambda: public_projection({
"source_id": "S01"
})
)
def test_secret_not_in_response(self):
result = synthetic_discovery(
PRINCIPAL, CONNECTION, CREDENTIAL, NOW
)
serialized = json.dumps(result)
self.assertNotIn(
CREDENTIAL.secret, serialized
)
self.assertNotIn(
"client_secret", serialized
)
self.assertNotIn(
"internal_connection_id", serialized
)
def test_allowed_fields_only(self):
result = synthetic_discovery(
PRINCIPAL, CONNECTION, CREDENTIAL, NOW
)
self.assertEqual(
set(result),
{
"source_id",
"provider_id",
"title",
"source_revision",
"source_reference",
"rights_status"
}
)
def test_unknown_fields_excluded(self):
result = public_projection({
"source_id": "S01",
"provider_id": "P01",
"title": "Synthetic",
"source_revision": "v1",
"access_token": "FAKE_TOKEN",
"private_endpoint": "internal-host"
})
self.assertNotIn("access_token", result)
self.assertNotIn("private_endpoint", result)
def test_connection_scope_denied(self):
restricted = replace(
CONNECTION,
allowed_operations=frozenset()
)
self.assert_code(
"OPERATION_ACCESS_DENIED",
lambda: authorize(
PRINCIPAL, restricted, CREDENTIAL,
"metadata_search", NOW
)
)
def test_naive_time_rejected(self):
naive = NOW.replace(tzinfo=None)
self.assert_code(
"INVALID_TIME_CONTEXT",
lambda: authorize(
PRINCIPAL, CONNECTION, CREDENTIAL,
"metadata_search", naive
)
)
if __name__ == "__main__":
unittest.main()
18. Execute the regression suite
python -m unittest -v test_provider_auth.py
The reference suite defines fourteen tests covering authorization, tenant scope, operation permissions, credential identity, expiration, revocation, missing source fields, public-response sanitization, and invalid time context.
These are provided test definitions, not executed production results.
The suite does not validate actual OAuth exchanges, TLS trust, provider token audiences, secret storage, rotation, response headers, logs, browser behavior, or real cross-owner API isolation.
19. Test real credential isolation independently
Production verification should examine more than the JSON response body.
Check that credentials do not appear in:
- Public API responses.
- Browser source and JavaScript bundles.
- HTML data attributes.
- URL query strings.
- Client-side storage.
- Error and exception responses.
- Server access logs and traces.
- Analytics events.
- Cached provider results.
- Graph or Library exports.
- Generated notebooks and publications.
- Diagnostic archives and support bundles.
Where internal credential references are visible only to authorized administrators, confirm that they cannot be used to retrieve the underlying secret through an unrelated read endpoint.
Do not test with production secret values in public-facing screenshots or test artifacts.
20. Preserve provider-source provenance
Authentication establishes access to the provider, while provenance establishes the origin and relationships of retrieved research material.
Preserve:
- Provider identifier.
- Source record identifier.
- Source revision or retrieval representation.
- Permitted source metadata.
- Retrieval timestamp where relevant.
- Provider schema or API revision.
- Relevant license and rights information.
- Sanitized connection or authorization decision reference where governance requires it.
Do not store bearer tokens as source provenance.
A scientific source should remain identifiable after credential rotation, token expiration, or a change in the backend authentication mechanism.
Provenance does not establish scientific validity or permission to redistribute source content.
21. Prepare an authentication evidence receipt
Illustrative machine-readable receipt:
{
"schema_version": "example-1.0",
"workflow": "provider_authentication",
"classification": "synthetic",
"provider": {
"provider_id": "synthetic-provider",
"authentication_mode": "service_credentials",
"operation": "metadata_search"
},
"connection": {
"tenant_scope": "synthetic-tenant",
"credential_material_recorded": false,
"credential_reference_disclosed": false
},
"acceptance": {
"trusted_identity": "not_tested",
"provider_authentication": "not_tested",
"scope_enforcement": "not_tested",
"tenant_isolation": "not_tested",
"credential_storage": "not_tested",
"token_expiration": "not_tested",
"rotation_and_revocation": "not_tested",
"public_response_sanitization": "not_tested",
"log_sanitization": "not_tested",
"safe_provider_destinations": "not_tested",
"rights_enforcement": "not_tested",
"source_provenance": "not_tested",
"production_runtime": "not_tested"
},
"publication_approval": false,
"release_decision": "NO_GO"
}
Actual receipts should identify the tested repository commit, API revision, deployed build, credential-policy version, security reviewer, and evidence locations.
Never include access tokens, API keys, refresh tokens, client secrets, private keys, or recoverable secret values in an acceptance receipt.
22. Technical acceptance matrix
| Criterion | Pass condition | Evidence |
|---|---|---|
| Provider identity | Approved provider and origin verified | Provider registry audit |
| Authentication method | Supported provider flow implemented correctly | Integration contract tests |
| Trusted user identity | User and project permissions enforced | Authenticated positive and negative tests |
| Service credential | Credential accessed only by authorized backend identity | Secret-store access evidence |
| Least privilege | Scopes restricted to required operations | Scope review and denial tests |
| Tenant isolation | Connection cannot be used by unrelated tenants | Cross-owner security tests |
| Token expiry | Expired credentials rejected or safely renewed | Time-boundary tests |
| Revocation | Revoked credentials cease to authorize operations | Provider and platform tests |
| Rotation | Replacement and retirement procedure verified | Rotation receipt |
| Provider destination | Credentials cannot reach unauthorized destinations | Network and redirect tests |
| Public response | No credentials or protected connection details disclosed | Response-schema and negative tests |
| Logging | Secret material absent from logs and traces | Sanitized observability review |
| Rights | Provider access not confused with source-use permission | Rights-policy tests |
| Provenance | Source remains identified independently of credential | Source-reconciliation tests |
| Persistence | Authorized connection state survives supported lifecycle operations | Restart and storage tests |
| Runtime acceptance | Actual deployed integration verified | API and browser evidence |
Acceptance rule: Each applicable criterion must be recorded as Pass, Fail, Not Tested, or Not Applicable. A required failed or untested security gate prevents production certification.
23. Sustainable Catalyst integration responsibilities
| Application | Intended responsibility |
|---|---|
| Unified Discovery | Route authorized search requests through approved provider adapters |
| Platform Core | Provide trusted identity, tenant authorization, and relevant service-identity controls |
| Library | Preserve permitted source identities, metadata, rights, and provenance |
| Workspace | Manage project ownership and approved provider use within research workflows |
| Research Lab | Review scientific evidence and data-use constraints |
| Workbench | Consume authorized source artifacts without embedding provider secrets in reproducible outputs |
| Site Intelligence | Use approved imagery and geospatial provider access where applicable |
| Decision Studio | Reference permitted evidence without inheriting external authentication credentials |
| Research | Publish approved results and source references without leaking connection configuration |
These are proposed responsibilities, not confirmation that the named integrations are deployed.
24. Required implementation audit
Before describing the procedure as verified against Sustainable Catalyst, inspect:
- Actual Unified Discovery repository, commit, and provider adapter code.
- Approved provider registry and connection ownership.
- Authentication grant types and provider-specific requirements.
- Actual token acquisition, refresh, and revocation behavior.
- Secret storage and service-identity configuration.
- Tenant, project, and object-level authorization.
- Outbound network, TLS, and redirect controls.
- Response serializers and public API contracts.
- Search-result cache partitioning and sanitization.
- Credential rotation and incident-response procedures.
- Log and telemetry scrubbing.
- Source metadata, rights, and Library handoff contracts.
- Executed unit, negative, and integration tests.
- Authenticated browser acceptance.
- Staging environment isolation and recovery evidence.
- Outstanding implementation and security limitations.
Attach exact source paths, commits, current CI results, staging evidence, and approved release decisions before certifying production behavior.
25. Common mistakes and safe recovery
Avoid the following mistakes:
- Embedding API keys in a browser application or public page.
- Accepting arbitrary client-specified destinations for privileged requests.
- Using service credentials as if they granted unrestricted user permissions.
- Requesting excessive provider scopes.
- Forwarding authorization headers across untrusted redirects.
- Logging access tokens during debugging.
- Sharing a token cache across incompatible tenant or audience contexts.
- Disabling TLS certificate validation to bypass errors.
- Treating provider HTTP success as scientific or rights approval.
- Publishing internal connection references within source metadata.
- Retrying revoked or invalid credentials indefinitely.
If credential exposure is suspected, preserve sanitized evidence and follow the incident-response process. Restrict the affected connection as appropriate, rotate or revoke compromised credentials, evaluate audit logs for misuse, and verify that no public or cached outputs retain the secret.
Do not include the exposed credential itself in the public incident report.
26. Technical references
- Hardt, D. (2012). The OAuth 2.0 Authorization Framework. RFC 6749. Available at: https://www.rfc-editor.org/rfc/rfc6749.html.
- Jones, M. and Hardt, D. (2012). The OAuth 2.0 Authorization Framework: Bearer Token Usage. RFC 6750. Available at: https://www.rfc-editor.org/rfc/rfc6750.html.
- Lodderstedt, T. et al. (2025). Best Current Practice for OAuth 2.0 Security. RFC 9700. Available at: https://www.rfc-editor.org/rfc/rfc9700.html.
- Sakimura, N., Bradley, J. and Agarwal, N. (2015). Proof Key for Code Exchange by OAuth Public Clients. RFC 7636. Available at: https://www.rfc-editor.org/rfc/rfc7636.html.
- OWASP Foundation (n.d.). Secrets Management Cheat Sheet. Available at: OWASP Cheat Sheet Series.
- OWASP Foundation (n.d.). Server-Side Request Forgery Prevention Cheat Sheet. Available at: OWASP Cheat Sheet Series.
- OWASP Foundation (2023). API Security Top 10. Available at: https://owasp.org/API-Security/.
- World Wide Web Consortium (W3C) (2013). PROV-O: The PROV Ontology. Available at: https://www.w3.org/TR/prov-o/.
- Python Software Foundation (n.d.). unittest — Unit Testing Framework. Available at: Python documentation.
27. Completion and verification record
| Field | Required record |
|---|---|
| Provider connection | Actual provider identity and approved connection reference |
| Authentication method | Implemented flow and provider contract |
| Credential owner | Responsible organization and custodian |
| Allowed operations | Actual scopes and use restrictions |
| Trusted identity | Pass, Fail, or Not Tested |
| Tenant isolation | Pass, Fail, or Not Tested |
| Secret storage | Verified protection and access controls |
| Credential expiration | Pass, Fail, or Not Tested |
| Rotation and revocation | Executed acceptance evidence |
| Provider destination safety | Pass, Fail, or Not Tested |
| Public response sanitization | Pass, Fail, or Not Tested |
| Logging and telemetry | Pass, Fail, or Not Tested |
| Source rights | Verified permitted use and limitations |
| Source provenance | Provider source identity preserved |
| Repository and commit | Actual implementation reference |
| CI and security tests | Executed results tied to source revision |
| Staging acceptance | Actual integration and isolation evidence |
| Browser acceptance | Authenticated interface and response review |
| Security reviewer | Actual reviewer and approval date |
| Outstanding limitations | Unresolved credential, rights, or implementation risks |
Completion criterion: Provider authentication is accepted when the requested operation uses an authorized provider connection with appropriate credential scope; user, tenant, and provider permissions remain independently enforced; credential material stays within trusted infrastructure; public and user-facing responses contain only permitted source information; expiry, revocation, and rotation are handled safely; and actual integration and security acceptance tests pass.
Scientific limitation: Successful authentication proves neither scientific credibility nor source-use permission. The validity of retrieved evidence, the legality of storing or redistributing provider content, and the suitability of sources for a research claim must be evaluated separately.
Current implementation status: Practical provider-authentication methodology, credential-isolation architecture, scope and tenant requirements, synthetic Python authorization model, fourteen security regression-test definitions, rotation guidance, public-response controls, and proposed release criteria documented. No specific Sustainable Catalyst Unified Discovery provider connection, OAuth integration, secret store, credential rotation workflow, or production authentication implementation is certified without source audit, executed security tests, authenticated runtime verification, and release approval.
