apache / apisix

The Cloud-Native API Gateway
https://apisix.apache.org/blog/
Apache License 2.0
14.32k stars 2.49k forks source link

help request: How consumer work with forward-auth? #11567

Open sky-dawn opened 1 week ago

sky-dawn commented 1 week ago

Description

How consumer work with forward-auth?

Environment

zhoujiexiong commented 1 week ago

Hello @sky-dawn

Could you please describe your usage scenario in detail?

sky-dawn commented 1 week ago

Hello @sky-dawn

Could you please describe your usage scenario in detail?

I'm using APISIX version 2.15 for rate limiting client requests, which requires consumers but also needs to work with an authentication system. The official auth plugin doesn't fit our needs, so we're using the forward-auth plugin for our auth service. However, I'm unsure how to get the consumer_name as the forward-auth plugin doesn't seem to offer the necessary key configuration.

zhoujiexiong commented 3 days ago

However, I'm unsure how to get the consumer_name as the forward-auth plugin doesn't seem to offer the necessary key configuration.

@sky-dawn More details about this?