You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/af-project-files.adoc
+151-3Lines changed: 151 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -779,7 +779,7 @@ The `connections` element has these properties.
779
779
|`spec` |Connection specification. Properties vary by connection kind. |Object |Object with spec properties (See <<spec-section,Spec>>) |Yes
780
780
|`spec.url` |The URL for the connection endpoint. |String |Valid URL string |Yes (for agent and llm), No (for mcp)
781
781
|`spec.authentication` |Authentication configuration for the connection. |Object |Authentication object (See <<authentication-types,Authentication types>>) |No
782
-
|`spec.authentication.kind` |The type of authentication. |String |`basic`, `oauth2-client-credentials`, `apikey-client-credentials`, `apiKey` |Yes (when authentication is specified)
782
+
|`spec.authentication.kind` |The type of authentication. |String |`basic`, `oauth2-client-credentials`, `apikey-client-credentials`, `apiKey`, `in-task-authorization-code`, and `oauth2-obo` |Yes (when authentication is specified)
783
783
|`spec.authentication.username` |The username for basic authentication. |String |Any string value |Yes (for basic auth)
784
784
|`spec.authentication.password` |The password for basic authentication. |String |Any string value |Yes (for basic auth)
785
785
|`spec.authentication.headerName` |The name of the header in which to set the key. If not specified, 'Authorization' is set by default. |String |Any string value |No
@@ -864,7 +864,7 @@ Both agents and MCP servers support the same authentication types with custom he
864
864
[source,yaml]
865
865
----
866
866
authentication:
867
-
Kind: basic
867
+
kind: basic
868
868
username: "username"
869
869
password: "password"
870
870
----
@@ -879,6 +879,18 @@ kind: basic
879
879
headerName: X-API-Authorization # Custom header instead of default "Authorization"
|`apiKey` |The value of the API key. |String |Any string |Yes
977
+
|`headerName` |The name of the header in which to set the key. If not specified, `Authorization` is used. |String |Any string |No
978
+
|===
979
+
980
+
[[in-task-auth]]
981
+
==== In-Task Authorization Code
982
+
983
+
Use `in-task authorization code` when the connection needs secondary credentials obtained during a task using the OAuth 2.0 Authorization Code flow. OAuth2 tokens are extracted from message data and injected into the `Authorization` header for upstream calls. This supports step-up or in-task authentication (for example, when a user must re-authenticate for a sensitive action). For more information about the associated policy, see xref:gateway::policies-outbound-a2a-intask-authorization-code.adoc[].
|`tokenAudience` |Intended recipient of the token (for example, `agent1` or API URL). |String |Any string |No
1017
+
|`bodyEncoding` |Encoding for the token request body. |String |`form`, `json`. Default: `form` |No
1018
+
|`tokenTimeout` |Timeout in seconds for token requests. |Integer |Positive integer. Default: 300 |No
1019
+
|`challengeResponseStatusCode` |HTTP status code returned for auth-required challenge responses. Typically 200 for JSON-RPC compatibility. |Integer |HTTP status code. Default: 200 |No
1020
+
|===
1021
+
1022
+
1023
+
[[obo-credential-injection]]
1024
+
==== OAuth 2.0 OBO Credential Injection
1025
+
1026
+
This authentication type supports OAuth 2.0 Token Exchange and Microsoft Entra ID On-Behalf-Of protocols. For more information about the associated policy, see xref:gateway::policies-outbound-oauth-obo.adoc[].
scope: Read #optional, OAuth 2.0 scope to request. Required for Microsoft Entra OBO (for example, api://downstream-client-id/.default). Optional for OAuth 2.0 Token Exchange (RFC 8693).
1041
+
timeout: 5000 #optional, Timeout for token exchange requests in milliseconds. Default: 10000.
1042
+
----
1043
+
1044
+
Using Microsoft Entra ID On-Behalf-Of:
1045
+
1046
+
[source,yaml]
1047
+
----
1048
+
authentication:
1049
+
kind: oauth2-obo
1050
+
flow: microsoft-entra-obo
1051
+
tokenEndpoint: https://oauth.provider.com/token
1052
+
clientId: clientId
1053
+
clientSecret: clientSecret
1054
+
scope: api://downstream-client-id/.default
1055
+
timeout: 5000 #optional, Timeout for token exchange requests in milliseconds. Default: 10000.
1056
+
----
1057
+
1058
+
The `oauth2-obo` authentication has these properties.
|`targetType` |Parameter type for specifying the target service (audience for logical name, resource for physical URI). Used for OAuth 2.0 Token Exchange. |String |`audience`, `resource`. Default: `audience` |No
1070
+
|`targetValue` |Target audience URI or resource URI for the exchanged token. Required for OAuth 2.0 Token Exchange. |String |Valid URI |Required when using `oauth2-token-exchange` with a target
1071
+
|`scope` |OAuth scope to request. Required for Microsoft Entra OBO (e.g. `api://downstream-client-id/.default`). Optional for OAuth 2.0 Token Exchange. |String |Any string |Required for `microsoft-entra-obo`
1072
+
|`timeout` |Timeout for token exchange requests in milliseconds. |Integer |Positive integer. Default: 10000 |No
0 commit comments