How to programmatically add and configure provider to the users-permissions plugin?

And then you can you env vars like you suggested