Giter Club home page Giter Club logo

herald_auth's Introduction

#用户认证体系

获取用户UUID(授权)

POST : http://.../uc/auth

DATA : user=一卡通;password=统一身份认证密码;appid=应用唯一标识符;

RETURN: 用户唯一标识符(UUID);参数错误:HTTP400;授权失败:HTTP401

用户标识符合法性检查

POST : http://.../uc/check

DATA : uuid=用户唯一标识符;appid=应用唯一标识符;

RETURN: 参数错误:HTTP400;uuid不合法:HTTP401;uuid合法:HTTP200 ‘[用户一卡通号]’

更新用户信息

POST : http://.../uc/update

DATA : cardnum=一卡通;password=统一身份认证密码;[number=学号;pe_password=体育系密码;lib_username=图书馆用户名;lib_password=图书馆密码;card_query_password=一卡通查询密码;]

RETURN: 参数错误:HTTP400;用户密码错误:HTTP401;更新成功:HTTP200 ‘OK’

注销用户UUID(解除授权)

POST : http://.../uc/deauth

DATA : uuid=用户唯一标识符;

RETURN: 参数错误:HTTP400;uuid不合法:HTTP400;注销成功:HTTP200 ‘OK’

调用API获取用户信息(使用API)

POST : http://.../uc/api/[API NAME]

DATA : uuid=用户唯一标识符;

RETURN: 参数错误:HTTP400;appid次数耗尽:HTTP200 'access denied';内部请求超时:HTTP200 'time out';成功:HTTP200 API返回内容

API NAME 信息

  • srtp
  • term
  • sidebar
  • curriculum
  • gpa
  • pe
  • simsimi (POST msg=信息)
  • nic
  • card(POST timedelta=查询时间长度)
  • lecture
  • library
  • renew (POST barcode=图书条形码号)

herald_auth's People

Contributors

ymlbright avatar telotic avatar

Stargazers

Rikumi avatar weikairen avatar 阿橙AIGC avatar zengkaimin avatar Peng Shi avatar

Watchers

 avatar James Cloos avatar Wenhao Ji avatar BYC avatar 0x0000ffff avatar Shufang Xie avatar  avatar Haixiao Xiong avatar  avatar Bing Liu avatar  avatar Goclis Yao avatar  avatar Rui Zhu avatar  avatar  avatar buren avatar  avatar  avatar  avatar DreamPiggy avatar  avatar Jason avatar Peri avatar  avatar  avatar  avatar daisiqi avatar Zhang Biliang avatar  avatar LiangJ avatar yxx avatar  avatar  avatar  avatar  avatar XinchenHuang avatar

Forkers

hanglegehang

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.