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
@@ -787,7 +787,7 @@ The `connections` element has these properties.
787
787
|`spec` |Connection specification. Properties vary by connection kind. |Object |Object with spec properties (See <<spec-section,Spec>>) |Yes
788
788
|`spec.url` |The URL for the connection endpoint. |String |Valid URL string |Yes (for agent and llm), No (for mcp)
789
789
|`spec.authentication` |Authentication configuration for the connection. |Object |Authentication object (See <<authentication-types,Authentication types>>) |No
790
-
|`spec.authentication.kind` |The type of authentication. |String |`basic`, `oauth2-client-credentials`, `apikey-client-credentials`, `apiKey` |Yes (when authentication is specified)
790
+
|`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)
791
791
|`spec.authentication.username` |The username for basic authentication. |String |Any string value |Yes (for basic auth)
792
792
|`spec.authentication.password` |The password for basic authentication. |String |Any string value |Yes (for basic auth)
793
793
|`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
@@ -872,7 +872,7 @@ Both agents and MCP servers support the same authentication types with custom he
872
872
[source,yaml]
873
873
----
874
874
authentication:
875
-
Kind: basic
875
+
kind: basic
876
876
username: "username"
877
877
password: "password"
878
878
----
@@ -887,6 +887,18 @@ kind: basic
887
887
headerName: X-API-Authorization # Custom header instead of default "Authorization"
|`apiKey` |The value of the API key. |String |Any string |Yes
985
+
|`headerName` |The name of the header in which to set the key. If not specified, `Authorization` is used. |String |Any string |No
986
+
|===
987
+
988
+
[[in-task-auth]]
989
+
==== In-Task Authorization Code
990
+
991
+
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
1025
+
|`bodyEncoding` |Encoding for the token request body. |String |`form`, `json`. Default: `form` |No
1026
+
|`tokenTimeout` |Timeout in seconds for token requests. |Integer |Positive integer. Default: 300 |No
1027
+
|`challengeResponseStatusCode` |HTTP status code returned for auth-required challenge responses. Typically 200 for JSON-RPC compatibility. |Integer |HTTP status code. Default: 200 |No
1028
+
|===
1029
+
1030
+
1031
+
[[obo-credential-injection]]
1032
+
==== OAuth 2.0 OBO Credential Injection
1033
+
1034
+
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).
1049
+
timeout: 5000 #optional, Timeout for token exchange requests in milliseconds. Default: 10000.
1050
+
----
1051
+
1052
+
Using Microsoft Entra ID On-Behalf-Of:
1053
+
1054
+
[source,yaml]
1055
+
----
1056
+
authentication:
1057
+
kind: oauth2-obo
1058
+
flow: microsoft-entra-obo
1059
+
tokenEndpoint: https://oauth.provider.com/token
1060
+
clientId: clientId
1061
+
clientSecret: clientSecret
1062
+
scope: api://downstream-client-id/.default
1063
+
timeout: 5000 #optional, Timeout for token exchange requests in milliseconds. Default: 10000.
1064
+
----
1065
+
1066
+
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
1078
+
|`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
1079
+
|`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`
1080
+
|`timeout` |Timeout for token exchange requests in milliseconds. |Integer |Positive integer. Default: 10000 |No
0 commit comments