Add marketing scope to Xamarin client

This commit is contained in:
Christian Arenas 2017-06-19 18:47:48 +02:00
parent bfb9eff00a
commit f0b2845a6f
2 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,7 @@ namespace eShopOnContainers.Core.Services.Identity
dic.Add("client_id", GlobalSetting.Instance.ClientId);
dic.Add("client_secret", GlobalSetting.Instance.ClientSecret);
dic.Add("response_type", "code id_token");
dic.Add("scope", "openid profile basket orders locations offline_access");
dic.Add("scope", "openid profile basket orders locations marketing offline_access");
dic.Add("redirect_uri", GlobalSetting.Instance.IdentityCallback);
dic.Add("nonce", Guid.NewGuid().ToString("N"));

View File

@ -74,7 +74,8 @@ namespace Identity.API.Configuration
IdentityServerConstants.StandardScopes.OfflineAccess,
"orders",
"basket",
"locations"
"locations",
"marketing"
},
//Allow requesting refresh tokens for long lived API access
AllowOfflineAccess = true,