HLFramework

欢迎访问哈林文档管理系统

获取用户授权token

客户端在与服务端进行通讯时,必须需要使用token进行授权验证,否则无法进行通讯

实际URL:https://www.xxxx.com/oauth/authorize/access-token

请求参数(Body):
字段名 类型 说明
grant_type String 默认值:authorization_code
client_id String 应用AppId
client_secret String 应用AppSecret
code String 通过“获取Code”接口获得
redirect_uri String 应用回调地址
state String 默认值:heimuri
client String 客户端标识(默认值:pc)
输出参数:
字段名 类型 说明
Code String 三位数字
message String 200: 请求成功 、400:处理请求数据出错、401:无权限、500:系统异常
输出数据说明:

{ "code": 200, "message": "", "data": { "token_type": "Bearer", "expires_in": 172800, "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJobEpmMkpyWUZ4Snk4UlJyQVkiLCJqdGkiOiIzNWEyZDUyNDhhMGNjNzQyOGU5NGRlMThlYjg2N2Y2OTExNTNmNjdkNWJjMGU4ZTZhNDI2MmNlYjIzNWFkZWVlMzkwZGUzNTQzMDEzNWQ4YiIsImlhdCI6IjE3MTgyNDA3NzYuNjIxMzk5IiwibmJmIjoiMTcxODI0MDc3Ni42MjE0MDYiLCJleHAiOiIxNzE4NDEzNTc2LjYwNjkyMCIsInN1YiI6IjUiLCJzY29wZXMiOlsiKiJdfQ.ML6LbkVlWDy4u3k_cn-N54ylamuiKAAq5qYYynV1hOatVucpYStnlA83YwPdM2fZrW9o3sh7zEO99_xUO0oqdEJeD1CZSDQwEsagnuwv9U4PVVoxG_M6jxnVM4I-SqjGtNKYp56NpI0wu8ckMtPYAWZHol-d_6H5yCHJpYHnLFyS1L8J7t5SBBGN2J71CxfEX4zzGwhr0wS2xPy1J6yOuZwB3QSUteEGp_toRm4uyifFPsCV8Vlu1UDE20XkaEHXSI4BrpP4Sa6h5LULlYVkoIY-gqjmqXdKEbtxNuxQGheN_2rORnSiGBEmSCysgdzBYvXOWtSOmmx5HOZEKt3Q9g", "refresh_token": "def502006f91b30a8968b3dc852061d4d84b9b139da56a9a01c4fe6069fb3732efea7493462a85fe06109e5a8862177f8c43098ae355912ee682aec803e53d661972790fcc464b47aaa72174f448e832718896f8bb4b8d1c27c95df9b7e12b82912325d2b782eae8137f3733d70aae722e4067657a9aa8562dec6c2cc97d7d8ffda420b4b7f6135b2b0cfa8d3efd84b4d2b7a5d39bd2e51cce57a1b9866da040b50eef86f1c71ec7e9fe61142a5cf3ae297d67262bec14b332a7c4a8acb1ca0a3715604e8a48932d19fdb89e66243b4b8d9f3fd92e9c104147d62025938906b09b50b4f65c55ab81e9ff4bed508ece5256c3c243901c8bd8e3a574a7765d30f65ea1c56feec49cd3c3fe2856f1b05b4a7cd0048cb9392a9ce966164579e07f2011700ba0849016ec5e7642b5c50da74f8a2719cf3689885fb2f353b575c08bcb89232dac7b3a35765fc4bed9a850fa1ec9d337ec4df8545bc554042cb1864437fe8de352ab42f33a8c1685ff5d474ae88283c80b6f" }, "timestamp": 1718240776 } }