bedstuystrong / automation_prime

0 stars 5 forks source link

Auth0 client, Google Secret Manager client, create Auth0 users #54

Closed cubeghost closed 3 years ago

cubeghost commented 3 years ago

This introduces two new API clients, Auth0Client and SecretsClient (for Google Cloud Secrets).

The Auth0 client gets a short-lived token to use for API requests and stores it in a Google Cloud Secret named auth0_api_token (which is set up and permissioned already in prod and staging). When the token expires and we get a 401 from Auth0, we grab a new token and retry the API request.