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:
40
models-integration/coze_oauth_java_jwt/README.md
Normal file
40
models-integration/coze_oauth_java_jwt/README.md
Normal 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
|
||||
```
|
||||
Reference in New Issue
Block a user