/objc-cas-client

iOS app demonstrating the authentication and ticket generating services of CAS.

Primary LanguageObjective-CBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Jasig CAS Client

Jasig CAS Client demonstrates authentication using the Jasig CAS RESTful API within an iOS application.

Using the packaged iOS application

Update the following variables found in the authenticate method within CAS Client/CASViewController.m to use valid credentials and Jasig CAS server:

  • username
  • password
  • casServer
  • casRestletPath

How It Works

  1. CAS.m:requestTGTWithUsername submits credentials to the Jasig CAS RESTful API expecting either a TicketGrantingTicket or failed authentication response.
  2. CAS.m:requestSTForService submits TicketGrantingTicket to Jasig CAS RESTful API expecting either a ServiceTicket or unsuccessful response.
  3. ServiceTicket appended on CAS protected URIs (e.g. http://localhost/protected/index.html?ticket=ST-1-FFDFHDSJKHSDFJKSDHFJKRUEYREWUIFSD2132)

License

See the LICENSE file