You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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
andmessage
, which can be specified with json path like$.code
and$.message
, the plugin check the http status and thecode
whether match some value.The text was updated successfully, but these errors were encountered: