Provide API for core module to authenticate user for National Chung Cheng University students and alumnus.
0.0.2 (2019/05/06)
The following entry points should be supported by this package.
- Portal - https://portal.ccu.edu.tw
- Alumni - https://miswww1.ccu.edu.tw/alumni/alumni/index.php
sign in current user to specific entry point
field | type | required | default | remark |
---|---|---|---|---|
username | string | ✓ | - | student id or identity card number |
password | string | ✓ | - | - |
target | string | ✓ | - | target entry point for authentication |
- success -
GuzzleHttp\Cookie\CookieJarInterface
- failure -
false
InvalidArgumentException
- invalid target valueGuzzleHttp\Exception\RequestException
- network errorGuzzleHttp\Exception\BadResponseException
- target entry point server unavailable
sign out user for specific entry point
field | type | required | default | remark |
---|---|---|---|---|
cookie | GuzzleHttp\Cookie\CookieJarInterface |
✓ | - | - |
- success -
true
- failure -
false