Replies: 1 comment
-
Hey @LukMas! I'm here to help you with your API Gateway authentication question. If you need assistance with anything else, feel free to ask! To configure APISIX to support CAS authentication correctly for your backend and frontend applications, you need to enable the curl http://127.0.0.1:9180/apisix/admin/routes/cas1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
"methods": ["GET", "POST"],
"host" : "127.0.0.1",
"uri": "/anything/*",
"plugins": {
"cas-auth": {
"idp_uri": "http://127.0.0.1:8080/realms/test/protocol/cas",
"cas_callback_uri": "/anything/cas_callback",
"logout_uri": "/anything/logout"
}
},
"upstream": {
"type": "roundrobin",
"nodes": {
"httpbin.org": 1
}
}
}' Explanation:
Steps:
Additional Notes:
This configuration ensures that both your backend and frontend applications are protected by CAS authentication through APISIX. To remove the curl http://127.0.0.1:9180/apisix/admin/routes/cas1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
"methods": ["GET", "POST"],
"uri": "/anything/*",
"plugins": {},
"upstream": {
"type": "roundrobin",
"nodes": {
"httpbin.org:80": 1
}
}
}' This setup should help you simulate the CAS authentication behavior you described using APISIX [1][2][3]. |
Beta Was this translation helpful? Give feedback.
-
Hi!
We are evaluating different solutions for our API Gateway. One big problem that we have is related to the authentication. We are constrained to use CAS (plans to move to something different are there, but it's not in a close future).
Up to now we always developed our applications either as a single application or a backend + frontend couple. The CAS authentication with both solutions works flawless, following the standard CAS behaviour.
But, as more we code, more we see the need to reduce the duplication of the APIs (in the backend + frontend solution), hence the need of an API Gateway.
Here comes the problem: how could we configure APISIX to support the CAS authentication correctly? For our backend + frontend application we do this:
Before deep diving into the configuration of all the possible components, only to find out that the CAS plugin cannot support this, I would like to know from you if this behaviour could be simulates/performed using the APISIX Gateway.
Beta Was this translation helpful? Give feedback.
All reactions