Can i receive ST via curl and vlidate to withdraw metadata of user

40 views
Skip to first unread message

artur mis

unread,
Jun 14, 2022, 11:23:32 AM6/14/22
to CAS Community
How can  i use curl to get ST and metadata

It doesn't work:
curl -s -k --data "username=somebody&password=passs&_eventId=submit" -i  https://cas.cas.whatever/cas/login?service=https%3A%2F%2Fservice.registered.whatever%2F<something>

- IF JSESSIONID is needed  to use  how to recive this cookie via curl  and use it.
- Host with curl is permited to ask cas about validation ST.
After that i would like validate ticket and take  metadata from cas.

Regards


Ray Bon

unread,
Jun 14, 2022, 4:16:06 PM6/14/22
to cas-...@apereo.org
artur,

Would this be what you are after (REST authentication protocol) https://apereo.github.io/cas/6.4.x/protocol/REST-Protocol.html

Ray

On Tue, 2022-06-14 at 08:23 -0700, artur mis wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.

artur mis

unread,
Jun 21, 2022, 9:21:54 AM6/21/22
to CAS Community, Ray Bon
Hello ,
 I  have  found out   this  link : https://stackoverflow.com/questions/28267660/logging-on-to-cas-server-through-curl and  i have done mofidication .Nowaday   i m able auth user  and  withdrow  user's metadata for services .  Link concerns   to  cas 3 and 4 but is posibble adapt  it for 6 too.  It is  nesesery understand  that  form ID  "lt"  was changed to execution .  API look like much easier  without  digging  to much like Ray  said.
Regards.
Reply all
Reply to author
Forward
0 new messages