Skip to content
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

Need a general forward auth plugin to delegate authentication and authorization to external service. #1094

Closed
jaggerwang opened this issue Jul 4, 2024 · 5 comments
Assignees

Comments

@jaggerwang
Copy link

jaggerwang commented Jul 4, 2024

Why do you need it?

For complex authentication and authorization senario, the built in auth plugins can't satify the requirement, it should delegate auth to external service.

How could it be?

Supply a built-in plugin to call external api to auth the original request, the input of the auth request is the credential from original request's header or query, and the output is a json object contains code and message, which can be specified with json path like $.code and $.message, the plugin check the http status and the code whether match some value.

@hanxiantao
Copy link
Collaborator

Whether it is similar to higress support ext_authz wasmplugin #895.I am currently in the process of implementing it.

@jaggerwang
Copy link
Author

👍Is there any plan or when it will be finished.

@hanxiantao
Copy link
Collaborator

👍Is there any plan or when it will be finished.

The basic code is already completed, and I'm currently debugging features and supplementing the documentation. If things go smoothly, I expect to submit a PR for the first version sometime this week, and I'd appreciate it if you could help review the code then.

@jaggerwang
Copy link
Author

OK, I'll try and test.

@hanxiantao hanxiantao self-assigned this Jul 15, 2024
@hanxiantao
Copy link
Collaborator

hanxiantao commented Jul 17, 2024

@jaggerwang The ext-auth plugin is now supported and will be released with the next version. #1103

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants