Multiple consumers on an oauth2 client? #7789
Unanswered
jviersel-ipronto
asked this question in
Help
Replies: 2 comments 1 reply
-
Hello @jviersel-ipronto, If I am not mistaken, you should probably use different |
Beta Was this translation helpful? Give feedback.
1 reply
-
It's pretty quit here. I can't believe nobody else is facing the same problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Maybe I misunderstand the Oauth2 standard or I am doing something wrong with Kong. I am using Kong + PostgresQL database.
Oauth2 clients are your applications, let's call mine 'MyApp'.
Consumers in kong are my users, let's call mine John and Andy, which will both be using MyApp.
So I created/updated a consumer for both John and Andy via the administrator API using PUT/consumers/john and /consumers/andy. Now I want to assign the client to them.
So I add MyApp via POST /consumers/john/oauth2, which works fine. But when I want to add it to the second user using POST /consumer/andy/oauth2, I get an error that the client_id must be unique and the requested one already exists.
Am I wrong using the same client_id for all users or did I miss some configuration option to make Kong accept the client_id on multiple users/consumers?
Beta Was this translation helpful? Give feedback.
All reactions