To casify web service I am planning to follow the following:
I have a application that requests for a web service, the web service will only server the client if the application passes a valid ticket string.
- The Java application sends a username/password combination to the CAS server using restful API.
- The CAS server replies with a ticket on successful authentication.
- The application sends the ticket my web service and ask for some data for some data.
- The web service receives the ticket and sends the ticket to the CAS server to validate it.
- If the CAS server returns a username/ or any kind of message that confirms the validity of the ticket, the web service replies back to the application a response to fulfill the application request.
The CAS server is returning the ticket to the application,the application posts the ticket string to web service, the web server accepts the ticket string. Now how do I send the ticket to CAS server for validation? Any ideas? Also is there any better way to casify the Web service?
I tried to draw what I want to archive: