Skip to content

Commit f0b2845

Browse files
committed
Add marketing scope to Xamarin client
1 parent bfb9eff commit f0b2845

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

  • src
    • Mobile/eShopOnContainers/eShopOnContainers.Core/Services/Identity
    • Services/Identity/Identity.API/Configuration

src/Mobile/eShopOnContainers/eShopOnContainers.Core/Services/Identity/IdentityService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public string CreateAuthorizationRequest()
2727
dic.Add("client_id", GlobalSetting.Instance.ClientId);
2828
dic.Add("client_secret", GlobalSetting.Instance.ClientSecret);
2929
dic.Add("response_type", "code id_token");
30-
dic.Add("scope", "openid profile basket orders locations offline_access");
30+
dic.Add("scope", "openid profile basket orders locations marketing offline_access");
3131
dic.Add("redirect_uri", GlobalSetting.Instance.IdentityCallback);
3232
dic.Add("nonce", Guid.NewGuid().ToString("N"));
3333

src/Services/Identity/Identity.API/Configuration/Config.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ public static IEnumerable<Client> GetClients(Dictionary<string,string> clientsUr
7474
IdentityServerConstants.StandardScopes.OfflineAccess,
7575
"orders",
7676
"basket",
77-
"locations"
77+
"locations",
78+
"marketing"
7879
},
7980
//Allow requesting refresh tokens for long lived API access
8081
AllowOfflineAccess = true,

0 commit comments

Comments
 (0)