When the adjacent Orchestrator is configured as a proxy, the corresponding proxy app configuration will look like the below. Note how the exampleApp uses the idpOrchestrator as its IDP. Also note that although the app defines its own headers config and authorization policy, it does not handle authenticating against a federated IDP nor does it handle post-authentication attribute loading.
```yaml
apps:
- name: exampleApp
type: proxy
routePatterns:
- app.example.com
upstream: https://app-internal.example.com
headers:
- name: SM_USER
value: "{{ idpOrchestrator.email }}"
- name: firstName
value: "{{ idpOrchestrator.given_name }}"
- name: lastName
value: "{{ idpOrchestrator.family_name }}"
policies:
- location: /
authentication:
idps:
- idpOrchestrator
authorization:
allowAll: false
connectors:
- name: idpOrchestrator
type: oidc
# ...
```
### IDP Orchestrator
In this configuration, a separate Orchestrator acts as an OIDC IDP for the "local proxy Orchestrator". Note how the IDP Orchestrator is responsible for authenticating against a federated IDP (Okta) and it is also responsible for loading attributes (LDAP) post-authentication. The claims returned from Okta and the attributes returned from LDAP are then mapped into the OIDC ID token that will be consumed by the proxy Orchestrator.
```yaml
apps:
- name: exampleApp
type: oidc
clientID: exampleClientID
credentials:
secrets:
-