awslabs / aws-api-gateway-developer-portal

A Serverless Developer Portal for easily publishing and cataloging APIs
Apache License 2.0
928 stars 402 forks source link

Make API's visible only to specific users and invisible to others #438

Closed ghost closed 4 years ago

ghost commented 4 years ago

I have a lot of APIs with multiple usage plans. I know we can hide/show API's in the dev portal API dashboard but it affects all users equally like either all users will see API's or no one.

I want to hide/show APIs on the user level. Like show API's only to few users but not to others.

Please guide me on how to achieve this.

kvidhani commented 4 years ago

There is no way to do this afaik. I got around this by deploying developer portals per each of my customers. A horrible solution but I have no other choice :/

ghost commented 4 years ago

@kvidhani I was able to do something like that by dividing users based on groups in cognito user pool and then returning only specific API's in front-end depending upon users user group.

A little better way might be using dynamoDb table