【华为云技术分享】WeLink服务端API身份验证应用管理后台免登录

简介

WeLink后台OAuth2.0在接受验证授权请求时,授权服务器会按照OAuth2.0协议对本次请求参数进行检验,若请求不合法或验证未通过,授权服务器会返回相应的错误信息,包含以下几个参数:

  • code:错误码

  • message:错误描述

 

返回格式

错误信息会以两种形式被返回:

1 HTTP/1.1 400 Bad Request
2 Content-Type: application/json
3 Cache-Control: no-store
4 
5 {    "code": "60008",    "message": "code is invalid"}

错误码定义

WeLink OAuth2.0服务的错误码定义如下表所示:

错误码描述
60001 success
60002 invalid_request: the length of code exceed 2000
60003 invalid_request: code is empty
60004 invalid_request: the length of client_id exceed 255
60005 invalid_request: the length of client_secret exceed 255
60006 invalid_request: the length of state exceed 255
60007 code has expired
60008 code is invalid
60009 Your account has been locked. Try again in 15 minutes!
60010 client_id and client_secret auth failed
60011 system is busy, please try again later
60012 temporaily_unavailable: please try again later
60013 invalid_request: grant_type param error
60018 The homePageUrl is invalid
60019 The redirectUrl is invalid
60020 The params of appName, homePageUrl, redirectUrl cannot be empty
60021 App name has been registered
60022 create client failed, please try again later
60023 register failed, please check input params
60024 register failed, please try again later
41500 获取用户信息异常

作者:叫我昵昵

 

posted @   华为云官方博客  阅读(734)  评论(0编辑  收藏  举报
编辑推荐:
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
点击右上角即可分享
微信分享提示