Initial commit: MSH System\n\n- msh_single_uniapp: Vue 2 + UniApp 前端(微信小程序/H5/App/支付宝小程序)\n- msh_crmeb_22: Spring Boot 2.2 后端(C端API/管理端/业务逻辑)\n- models-integration: AI服务集成(Coze/KieAI/腾讯ASR)\n- docs: 产品文档与设计稿

This commit is contained in:
2026-02-28 05:40:21 +08:00
commit 14d29d51c0
2182 changed files with 482509 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
# Coze OAuth Examples
This repository contains examples of different OAuth flows for Coze API authentication.
## Prerequisites
- Java 11 or higher
- Gradle
- A Coze API account with client credentials
## Configuration
Each example requires config file to be set with your Coze API credentials:
### JWT OAuth
### Set Environment Variables
To run the JWT OAuth example, set the following config file:
The configuration file should be a JSON file, named coze_oauth_config.json with the following format:
```json
{
"client_type": "server",
"client_id": "{client_id}",
"private_key": "{private_key}",
"public_key_id": "{public_key_id}",
"coze_www_base": "https://www.coze.cn",
"coze_api_base": "https://api.coze.cn"
}
```
This file should be placed in the jwt-auth directory.
#### Running the Examples
After configuring the config file, you can run the JWT OAuth example using:
```bash
sh bootstrap.sh
```