英文:
Apereo CAS - login through REST call
问题
I have a cas server running locally (https://localhost:8443) and a default user.
Username: casuser
Password: Mellon
I want to use another java-based application to log in a user using Apereo CAS.
Is it possible to call an Apereo CAS API for login from another application and receive validation (token) if the login is successful?
It would be best if I could, for example, send the username and password in JSON format and receive a response indicating whether the login was successful or not.
英文:
I have a cas server running localy (https://localhost:8443) and a default user.
Username: casuser
Password: Mellon
I want to use another java based application to login a user by using Apero CAS.
Is it possible to call a Apereo CAS API for the login from another application and get back some kind of validation (token) if the login is successful?
It would be best if i can for example just send the username and password as a json format and get back a response regarding if the login was successful or not.
答案1
得分: 2
Yes, you can do that via the CAS REST protocol: https://apereo.github.io/cas/6.6.x/protocol/REST-Protocol.html but you will lose the SSO (Single-Sign-On) feature.
You'd better stick to the webflow login process: https://apereo.github.io/cas/6.6.x/protocol/CAS-Protocol.html
英文:
Yes, you can do that via the CAS REST protocol: https://apereo.github.io/cas/6.6.x/protocol/REST-Protocol.html but you will lose the SSO (Single-Sign-On) feature.
You'd better stick to the webflow login process: https://apereo.github.io/cas/6.6.x/protocol/CAS-Protocol.html
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论