# Objecten API setup_configuration (S-18b). Streamed into the external rr-objecten-config volume by # infra/seed-config.sh and applied by objecten-init (RUN_SETUP_CONFIG). Declarative + idempotent. # # Two things: (1) register the Objecttypen API (S-18a) as a trusted service so an object can # reference its objecttype — authenticating with the dev static token Objecttypen provisioned; and # (2) a dev static token so peers (the ACL, S-19) can write objects here. Dev-only, not for prod. # (1) Trust the Objecttypen API. `orc` = overige RESTful component (how zgw_consumers classifies the # Objecttypen API). The RegisterRecord objecttype (S-18c) will reference an objecttype under this # service by uuid. zgw_consumers_config_enable: true zgw_consumers: services: - identifier: objecttypen label: Objecttypen API api_type: orc api_root: http://objecttypen:8000/api/v2/ auth_type: api_key header_key: Authorization header_value: Token 0123456789abcdef0123456789abcdef01234567 # (2) Static API token peers use to write/read objects. tokenauth_config_enable: true tokenauth: items: - identifier: register-referentie token: 1234567890abcdef1234567890abcdef12345678 contact_person: Register Referentie email: admin@localhost organization: Respellion is_superuser: true