Authentication Login
When a user accesses an integrated application, the application initiates a CAS-based authentication login (redirect method) to the platform. After the user successfully authenticates by entering their username and password, the platform will redirect back to the application, carrying the ticket parameter to pass the Service Ticket.
# Request Specification
GET https://{your_domain}/api/v1/cas/login
# Request Parameters
| Parameter Name | Chinese Name | Required | Example Value | Description |
|---|---|---|---|---|
| service | Callback Address | Yes | The address where the application accepts the ticket, URL encoded, must match the application callback URL configured in the application's CAS settings. |
# Request Example
https://{your_domain}/api/v1/cas/login?service=http://casdemo.bccastle.com/demo/index
# Response Parameters
xxxxxxxxxx HTTP Status: 302 REDIRECThttps://{app_domain}/callbackhttp
| Parameter Name | Chinese Name | Required | Example Value | Description |
|---|---|---|---|---|
| ticket | Ticket | Yes | S8Glha6CQmNzvA | After successful authentication login or if already logged in, redirects to the service address carrying the Service Ticket. Note: This ticket is valid for 5 minutes and can only be used once within its validity period. |
# Return Example
HTTP Status: 302 REDIRECT
{redirect_uri}?ticket=ST-8Glha6c7BXTDsSoIc1T8Jh0wPCQmNzvA
1
2
2
