Add user API keys to plumber API

I have a small plumber API. I would like to add user login and API key generation with API call limits. Has anyone been successful at making and API which has this functionality or is this beyond the scope of plumber?

1 Like

Not within plumber, but I've used an API management tool to get API keys and authentication, most often Google cloud endpoints but also Azure's API management - one you have the swagger file generated by plumber most services will work with it.

2 Likes

Thanks for the great info. I am thinking google endpoints would work well. Do you have any tips as far as using the swagger file with Google cloud endpoints or is the process straightforward?

RStudio Connect provides an easy way to host plumber APIs on-premise and includes support for user management and access controls via API keys. Connect also lets you scale the number of R processes supporting your API and integrates with RStudio for easy push button publishing and package management.

https://www.rstudio.com/products/connect/ - let us know if you have any questions!

2 Likes

Do you have any tips as far as using the swagger file with Google cloud endpoints or is the process straightforward?

I have a demo GitHub for running plumber scripts in Docker/App Engine which may have some things you can adapt here (ignore the App Engine part) - it includes a function to process the swagger file for cloud endpoints you may find helpful.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.