OAuthConnection
Connection configuration using OAuth 2.0 client credentials. Useful for tools and services that require OAuth authentication, such as MCP servers, OpenAPI endpoints, or other REST APIs.
Class Diagram
Section titled “Class Diagram”---
title: OAuthConnection
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class Connection {
+string kind
+string authenticationMode
+string usageDescription
}
Connection <|-- OAuthConnection
class OAuthConnection {
+string kind
+string endpoint
+string clientId
+string clientSecret
+string tokenUrl
+string[] scopes
}
Yaml Example
Section titled “Yaml Example”kind: oauthendpoint: https://api.example.comclientId: your-client-idclientSecret: your-client-secrettokenUrl: https://login.microsoftonline.com/{tenant}/oauth2/v2.0/tokenscopes: - https://cognitiveservices.azure.com/.defaultProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| kind | string | The connection kind for OAuth authentication |
| endpoint | string | The endpoint URL for the service |
| clientId | string | The OAuth client ID |
| clientSecret | string | The OAuth client secret |
| tokenUrl | string | The OAuth token endpoint URL |
| scopes | string[] | OAuth scopes to request |