Code Monkey home page Code Monkey logo

wuyiu-sso's Introduction

武夷学院-教务系统&统一认证平台登录

武夷学院统一认证平台登录模拟

在我写到这里的时候,武夷学院几乎所有系统都在使用统一认证平台进行身份认证。

一般情况下统一认证平台只在内网开放,请注意网络场景。

安装

npm install

启动

修改index.js文件中的账号密码。

控制台运行以下命令。

npm run start

成功示例: img.png

文档

实现登录有三个步骤

  1. 初始化(_initLogin)

    主要作用为获取一个键为SESSION的Cookie,以及拿到executioncroypto的值。

    接下来登录会用到这些。

  2. 登录表单提交(login)

    这里只有一个密码加密,其他项没有特殊处理的。主要Cookie要携带上一步拿到的SESSION

    主要返回一个重定向location和两个Cookie,储存起来,下一步要用。

  3. 登录回调(login)

    携带上面所有的Cookie,请求上一步的location,服务器校验成功后返回两个Cookie。

    这两个Cookie就是我们的最终目的。

代码很容易理解,我不过多赘述。

本仓库仅作为学习测试用途,分享学习经验,切勿他用

wuyiu-sso's People

Contributors

asionesjia avatar

Watchers

 avatar

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.