sso-proxy: internal host should apply to redeem, /refresh, /validate, /profile by benjsto · Pull Request #123 · buzzfeed/sso
Problem
Dan's PR added the ability to have an optional 'internal' host defined that proxy will use to connect to auth. However, that internal host was only applied on /redeem requests. Other cases where proxy makes a request to auth, like /refresh, /validate, or /profile should also use this internal host if it is provided.
Solution
If the optional PROVIDER_URL_INTERNAL is set, use that host to connect to auth for /redeem, /refresh, /validate, and /profile.