File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/Umbraco.Cms.Integrations.OAuthProxy/Controllers Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ private HttpClient GetClient(string serviceName)
69
69
{
70
70
var httpClient = _httpClientFactory . CreateClient ( $ "{ serviceName } Token") ;
71
71
72
+ // Shopify's endpoint (and potentially others in future) for retrieving the access token is directly coupled with the shop's name.
73
+ // As a result the address of the client needs to be updated with the request header value for the name of the shop.
72
74
var serviceAddressReplaceHeader = Request . Headers . FirstOrDefault ( p => p . Key . Contains ( ServiceAddressReplacePrefixHeaderKey ) ) ;
73
75
if ( ! serviceAddressReplaceHeader . Equals ( default ( KeyValuePair < string , StringValues > ) ) && httpClient . BaseAddress != null )
74
76
{
You can’t perform that action at this time.
0 commit comments