Git Product home page Git Product logo

szpu-cas-client's Introduction

深圳职业技术大学CAS第三方客户端 👋

Version License: LICENSE

使用 Python 优雅登录【深圳职业技术大学】的SSO统一身份认证平台,便捷地访问业务应用程序, 无需再重复造轮子。

🚫 免责声明

本程序仅对深职大SSO/CAS认证系统的接口进行了封装,作者不对程序的正确性或可靠性提供保证。 请使用者自行判断具体场景是否适合使用该程序,使用该程序造成的问题或后果由使用者自行承担!

⚠ 温馨提示

  • 在提出Issues或提交Pull requests切勿把暴露个人敏感信息,包括但不限于用户名,密码,学号,API Key等。
  • 因authserver系统频繁更新原因,代码可能经常需要更新,建议关注本项目的动态。

Install

git clone https://github.com/HozukiKaede/szpu-cas-client

Usage

from szpu_cas_client.cas import credential
from szpu_cas_client.app import app

# 用户名和密码认证CAS凭证
username = '21234567'
password = 'passwd1234@'
cas.login(username, password)

# 认证业务系统
url = "https://i.szpt.edu.cn"
jwxt = app.app(app_url=url, cas_cred=cas)
response = jwxt.session.get('https://ehall.szpt.edu.cn/getLoginUser')
# 获取业务系统的API响应
print(response.json())

Moudle

  • 用户名(别名)和密码登录CAS
  • 手机验证码登录CAS
  • 通过缓存TGT票据的文件登录CAS
  • 为业务应用颁发ST票据并获取业务应用的cookie(session对象)

Author

👤 HozukiKaede 穗月枫

👤 凉宫百合子

  • 开发者,Kōsaka kirino小桐桐,感谢贡献图像识别模块的开发(为大家节省了GPU/RAM,作者差点要上神经网络了)
  • Bilibili: @凉宫百合子

🤝 Contributing

欢迎贡献、问题和功能请求!
请随时检查 issues page. 您还可以查看 contributing guide.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2024 HozukiKaede.
This project is LICENSE licensed.


This README was generated with ❤️ by readme-md-generator

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.