-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
discuss: improve the UE of config Authentication plugins #529
Comments
agree with this proposal too. apache/apisix#2308 , if we support this feature, the dashboard will easier. |
agree +1 |
yes you got my point @juzhiyuan 🤝, and furthermore, if the authentication plugin can be turned into the consumer’s default support plugin, just like |
yep, let's implement your proposal first :D |
I just put this feature in M1.7. |
thanks for @juzhiyuan 's reminder, I also rethinked this issue, and IMHO, it is better to get support from BE:
This would also apply to other plugins that do not require configuration :) |
We can create a new API to return all the information of the plug-in, such as For example the new API: @liuxiran would like to handle this job? |
sure, I have already sent a mail to dev, just waiting for others' comments and suggestions :) |
Hi folks, final conclusion here? |
@liuxiran I think we can close this issue and create a new one with the final conclusion from the emailing list. |
yes, confirm this @liuxiran |
any update? |
after the new api |
Please answer these questions before submitting your issue.
Why
The Authentication plugins, e.g:
basic-auth
openid-connect
and other auth plugins supported by Apisix should work with consumer together. Only when one auth plugin is enabled and configed correctly can a consumer be created or modified, and can access a route which is also enabled the same auth plugin. At the same time, a route or a service can enabled the auth plugin without any configs(even if configured here, the auth plugin configuration of consumer will matched by default).RIght now, the auth plugins can be configed both in consumer and route, but the auth config in route doesn't really work, and it will Induce user that only the configed consumer can access the route. So it would be better to improve the UE of config auth plugins.
Proposal
the authentication plugins should be enabled with configuration in consumer module.
the authentication plugins should be only shown with a switch to enabled/disabled in route or service module.
right now if a route enabled two auth plugins, it should be matched with this two auth token, In fact, it is not possible for users to access the same route using two or more different authentication methods. so it would be better to only enabled one auth plugin in route.
The text was updated successfully, but these errors were encountered: