创建应用后获取 AppID 和 AppSecret, 然后绑定允许登录的用户。
+ +String plaintext = username + ":" + (System.currentTimeMillis() / 1000); +String token = AesUtil.encrypt(plaintext, appSecret); // AES-CBC+ +
POST /api/openapi/token/validate
+{ "app_id": "xxx", "token": "encrypted-string" }
+
+// 成功返回 JWT
+// 失败: 用户未授权给此应用
+