sso_auth: add identity provider slug to url path and mux by jphines · Pull Request #195 · buzzfeed/sso
Problem
As we move towards supporting multiple providers within sso-auth, we need to provide unique callback urls for each identity provider.
Solution
We add more provider slug prefixes to url paths and supply a default provider to support unique callback urls as well as preserve backward's compatibility
Notes
- Creates a new
AuthenticatorMuxstruct to house the mux mechanism for multipleAuthenticators - Move initialization from
main.gotoNewAuthenticatorMux - Make
newStatsdClientpublic to call from initialization frommain.go - Add new
Slugstruct field toProviderDatato differentiate between providers.