cas-auth
You can enable the Plugin on a specific Route as shown below:
Once you have enabled the Plugin, a new user visiting this Route would first be processed by the cas-auth
Plugin. If no login session exists, the user would be redirected to the login page of idp_uri
.
This process is only done once and subsequent requests are left uninterrupted. Once this is done, the user is redirected to the original URL they wanted to visit.
Later, the user could visit logout_uri
to start logout process. The user would be redirected to idp_uri
to do logout.
These uris need to be captured by the route where the current APISIX is located. For example, if the uri
of the current route is /api/v1/*
, cas_callback_uri
can be filled in as /api/v1/cas_callback
.
To disable the cas-auth
Plugin, you can delete the corresponding JSON configuration from the Plugin configuration. APISIX will automatically reload and you do not have to restart for this to take effect.
{
"uri": "/anything/*",
"plugins": {},
"upstream": {
"nodes": {
"httpbin.org:80": 1
}
}
}'