This Auth Service was designed to help with managing auth across all SoapBox services.
In particular, it allowed for login and logout through JWT and using REDIS as a datastore (speed reasons).
View the functional designs below:
- Redis
- OAUTH PROVIDERS (Clients and secrets)
- Slack
- Microsoft ...
-
create .env file (copy .env.example. It already has working values for the variables you need to change).
Be careful to put in correct values for all providers.
Here are a few pitfalls for some of theenv
variables- URLs:
http
is different fromhttps
http://url.com
is different fromhttp://url.com/
- The client, secret and redirect url (used when using legacy auth) must match whatever values used on the frontend
- Redis:
- Same credentials (REDIS_HOST, REDIS_PORT and REDIS_DATABASE) as API-Gateway
- URLs:
-
Run
composer install
To use the GoodTalk-API for authentication, simply add a parameter soapbox-slug
to your request.