diff --git a/Owin.Security.Providers/Shopify/Provider/ShopifyAuthenticatedContext.cs b/Owin.Security.Providers/Shopify/Provider/ShopifyAuthenticatedContext.cs
index 2bc6b35..a0d6025 100644
--- a/Owin.Security.Providers/Shopify/Provider/ShopifyAuthenticatedContext.cs
+++ b/Owin.Security.Providers/Shopify/Provider/ShopifyAuthenticatedContext.cs
@@ -25,6 +25,7 @@
UserName = string.IsNullOrWhiteSpace(fullShopifyDomainName) ? null : fullShopifyDomainName.Replace(".myshopify.com", "");
Email = TryGetValue(shop, "email");
ShopName = TryGetValue(shop, "name");
+ ShopifyDomain = fullShopifyDomainName;
}
///
@@ -59,6 +60,11 @@
///
public string ShopName { get; private set; }
+ ///
+ /// Gets the Shopify domain name.
+ ///
+ public string ShopifyDomain { get; private set; }
+
///
/// Gets the representing the Shopify shop.
///
diff --git a/Owin.Security.Providers/Shopify/ShopifyAuthenticationHandler.cs b/Owin.Security.Providers/Shopify/ShopifyAuthenticationHandler.cs
index 13eb78c..b00ba47 100644
--- a/Owin.Security.Providers/Shopify/ShopifyAuthenticationHandler.cs
+++ b/Owin.Security.Providers/Shopify/ShopifyAuthenticationHandler.cs
@@ -118,7 +118,7 @@
if (!string.IsNullOrEmpty(context.ShopName))
{
- context.Identity.AddClaim(new Claim("urn:shopify:shopname", context.ShopName, XmlSchemaString, Options.AuthenticationType));
+ context.Identity.AddClaim(new Claim("urn:shopify:shopdomain", context.ShopifyDomain, XmlSchemaString, Options.AuthenticationType));
}
context.Properties = properties;