How to Log In by Scanning a QR Code via SUST API
1. Integration Endpoints
To use this endpoint, first complete the integration described in the SUST Student Affairs Information System SSO Integration Guide.
- Student QR-code login:
https://zhxg.sust.edu.cn/wap/scan/go - Teacher QR-code login:
https://zhxg.sust.edu.cn/teacher/scan/go
2. Parameter
redirectUrl: the URL page to redirect to after QR-code login. The value must include the http or https protocol.
The URL must be encoded with url_encode.
Example:
text
https://www.baidu.com?a=1&b=2&c=3Encoded as:
text
https%3A%2F%2Fwww.baidu.com%3Fa%3D1%26b%3D2%26c%3D33. Response
After QR-code login, the system automatically redirects to redirectUrl.
4. Example
text
https://zhxg.sust.edu.cn/wap/scan/go?redirectUrl=https%3A%2F%2Fwww.baidu.com%3Fa%3D1%26b%3D2%26c%3D3