zoukankan      html  css  js  c++  java
  • 【华为云技术分享】WeLink服务端API身份验证应用管理后台免登录

    简介

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

    • code:错误码

    • message:错误描述

    返回格式

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

    HTTP/1.1 400 Bad Request
    Content-Type: application/json
    Cache-Control: no-store
    
    {    "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 获取用户信息异常

    作者:叫我昵昵

  • 相关阅读:
    tensorflow (七) k-means
    如何提升开发效率-前端技术选型篇
    Spring AOP详解
    Vue.js学习笔记-入门
    拥抱Vue,抛弃jQuery
    HTML+CSS实现审核流程步骤效果
    测试SpringMVC可能出现的线程安全问题
    CGLib动态创建对象和属性
    jconsole观察jvm中线程及GC情况
    Java NIO学习笔记-Selector
  • 原文地址:https://www.cnblogs.com/2020-zhy-jzoj/p/13164957.html
Copyright © 2011-2022 走看看