Updated on 2024-12-30 GMT+08:00

Verifying Tickets (CAS 1.0)

Function

This API is used by an application to verify tickets.

Constraints

null

URI

GET /api/v1/cas/validate

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

service

Yes

String

URL for an application to receive tickets. The URL must be the same as the application callback URL in the CAS configuration.

ticket

Yes

String

Service ticket obtained during login authentication.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

-

String

Example Requests

Call the CAS 1.0 API to verify a ticket. Obtain the user attribute information by configuring parameters, including the application callback address (https://example.com), and authentication ticket (ST-eYlKs8FrLCltwRwfm8AiwCxmQ8gAL...) obtained by the login authentication API.

GET https://{domain_name}/api/v1/cas/validate?service=https://example.com&ticket=ST-eYlKs8FrLCltwRwfm8AiwCxmQ8gAL...

Example Responses

Status code: 200

Request successful.

{
  "application/text" : "yes \"username\""
}

Status Codes

Status Code

Description

200

Request successful.

Error Codes

See Error Codes.