[cas-user] use restapi to access /cas/v1/tickets got 404 error

0 views
Skip to first unread message

申凯

unread,
Jan 13, 2022, 7:30:29 AM1/13/22
to CAS Community
I'm new to cas, I build and run https://github.com/apereo/cas-overlay-template/tree/6.4 project using my idea.

When I try to test rest api by :

curl --http1.0 -k -X POST -H "Content-Type: Application/x-www-form-urlencoded" https://10.1.178.173:8447/cas/v1/tickets -d "username=casuser&password=Mellon"

I got 404 error:
--- !<java.util.LinkedHashMap>
timestamp: "2022-01-13T10:57:59.581+00:00"
status: 404
error: "Not Found"
path: "/cas/v1/tickets"

I have add cas-server-support-rest dependencies to the build.gradle

And I don't know how to find out the reason.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/4dcbc4a4-d671-47b3-86a3-b0acfb3684bbn%40apereo.org.
Reply all
Reply to author
Forward
0 new messages