Skip to main content

auth_service.proto

path agntcy/identity/service/v1alpha1/auth_service.proto

package agntcy.identity.service.v1alpha1


Messages​

AppInfoResponse​

NameTypeDescription
appAppThe App information.

ApproveTokenRequest​

NameTypeDescription
device_idstringThe device id used to handle the approval requestion
session_idstringThe session id related to the token that needs to be approved
otpstringThe OTP sent to the device related to the request
approveboolThe action made by the user (true: allow the token, false: deny the token)

AuthorizeRequest​

NameTypeDescription
resolver_metadata_idoptional stringThe resolver metadata id for which authorization is requested.
tool_nameoptional stringThe MCP Server tool name.
user_tokenoptional stringThe User context in the form of an id or access token. Mandatory for User Approval Flows.

AuthorizeResponse​

NameTypeDescription
authorization_codestringIf authorization is successful, return a code to be used for the token endpoint.

ExtAuthzRequest​

NameTypeDescription
access_tokenstringThe access token to be authorized.
tool_nameoptional stringThe tool name that will be invoked

TokenRequest​

NameTypeDescription
authorization_codestringPass the code received from the authorization endpoint.

TokenResponse​

NameTypeDescription
access_tokenstringThe access token issued to the Agent or MCP Server.

Services​

AuthService​

AuthService manages auth.

AppInfo​

MethodAppInfo
RequestEmpty
ResponseAppInfoResponse
DescriptionApp info endpoint

Authorize​

MethodAuthorize
RequestAuthorizeRequest
ResponseAuthorizeResponse
DescriptionAuthorize a request from an Agent or MCP Server

Token​

MethodToken
RequestTokenRequest
ResponseTokenResponse
DescriptionRequest token for an Agent or MCP Server

ExtAuthz​

MethodExtAuthz
RequestExtAuthzRequest
ResponseEmpty
DescriptionHandle external authorization requests

ApproveToken​

MethodApproveToken
RequestApproveTokenRequest
ResponseEmpty
DescriptionHandle manual approval of external authorization requets