# coze_oauth_java_jwt_maven **Repository Path**: Megadotnet/coze_oauth_java_jwt_maven ## Basic Information - **Project Name**: coze_oauth_java_jwt_maven - **Description**: 扣子智能体jwt认证的maven版本,支持匿名多会话 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2025-04-26 - **Last Updated**: 2025-07-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Coze OAuth Examples This repository contains examples of different OAuth flows for Coze API authentication. 此版本是改造pom.xml版本 ## 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 ```