跳到主内容

应用程序类别

每个应用都有一个类别和一个类型。类别指明了谁在使用该应用(是人还是机器),并决定了哪些类型和功能可用。

类别和类型​

CategoryForTypes
DefaultWeb and mobile applications that users sign in to, in a browser or a clientAll for several protocols, or one protocol: OIDC, OAuth, SAML, CAS
AgentMachine-to-machine clients: services and tools that authenticate from code, without a UI for the userMCP for Model Context Protocol clients and servers, such as AI agents and their tools. A2A for application-to-application calls between services

只有类别为 Agent 的应用才能定义自定义范围。类别为 Default 的应用使用标准的 OAuth 2.0 和 OpenID Connect (OIDC) 范围。

通过动态客户端注册创建的客户端应用,默认可以获得 Agent 类别和 MCP 类型。

更改类别​

  1. 在 Casdoor 管理控制台中,打开应用的编辑页面。
  2. 在 Basic 选项卡中,选择 Category。当你选择 Agent 时,Casdoor 会将 Type 设置为 MCP;当你选择 Default 时,将其设置为 All。
  3. 如果需要,请选择其他 Type,然后保存应用。

另请参阅​