oauth2_auth
Authenticate and authorize OAuth2 flows for secure API access, supporting client credentials, password, authorization code, and refresh token grant types within CyberMCP.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
authorization_url | No | OAuth2 authorization endpoint URL (for authorization code flow) | |
client_id | Yes | OAuth2 client ID | |
client_secret | No | OAuth2 client secret | |
grant_type | No | OAuth2 grant type | client_credentials |
password | No | Password (for password grant type) | |
redirect_uri | No | Redirect URI (for authorization code flow) | |
scope | No | OAuth2 scope | |
token_url | Yes | OAuth2 token endpoint URL | |
username | No | Username (for password grant type) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization_url": {
"description": "OAuth2 authorization endpoint URL (for authorization code flow)",
"format": "uri",
"type": "string"
},
"client_id": {
"description": "OAuth2 client ID",
"type": "string"
},
"client_secret": {
"description": "OAuth2 client secret",
"type": "string"
},
"grant_type": {
"default": "client_credentials",
"description": "OAuth2 grant type",
"enum": [
"client_credentials",
"password",
"authorization_code",
"refresh_token"
],
"type": "string"
},
"password": {
"description": "Password (for password grant type)",
"type": "string"
},
"redirect_uri": {
"description": "Redirect URI (for authorization code flow)",
"type": "string"
},
"scope": {
"description": "OAuth2 scope",
"type": "string"
},
"token_url": {
"description": "OAuth2 token endpoint URL",
"format": "uri",
"type": "string"
},
"username": {
"description": "Username (for password grant type)",
"type": "string"
}
},
"required": [
"client_id",
"token_url"
],
"type": "object"
}