Apereo CAS – 通过 REST 调用进行登录

huangapple go评论105阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年4月16日 23:45:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/76028747.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定