Add marketing scope to Xamarin client
This commit is contained in:
parent
bfb9eff00a
commit
f0b2845a6f
@ -27,7 +27,7 @@ namespace eShopOnContainers.Core.Services.Identity
|
|||||||
dic.Add("client_id", GlobalSetting.Instance.ClientId);
|
dic.Add("client_id", GlobalSetting.Instance.ClientId);
|
||||||
dic.Add("client_secret", GlobalSetting.Instance.ClientSecret);
|
dic.Add("client_secret", GlobalSetting.Instance.ClientSecret);
|
||||||
dic.Add("response_type", "code id_token");
|
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("redirect_uri", GlobalSetting.Instance.IdentityCallback);
|
||||||
dic.Add("nonce", Guid.NewGuid().ToString("N"));
|
dic.Add("nonce", Guid.NewGuid().ToString("N"));
|
||||||
|
|
||||||
|
@ -74,7 +74,8 @@ namespace Identity.API.Configuration
|
|||||||
IdentityServerConstants.StandardScopes.OfflineAccess,
|
IdentityServerConstants.StandardScopes.OfflineAccess,
|
||||||
"orders",
|
"orders",
|
||||||
"basket",
|
"basket",
|
||||||
"locations"
|
"locations",
|
||||||
|
"marketing"
|
||||||
},
|
},
|
||||||
//Allow requesting refresh tokens for long lived API access
|
//Allow requesting refresh tokens for long lived API access
|
||||||
AllowOfflineAccess = true,
|
AllowOfflineAccess = true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user