Skip to content

AnthN & AuthZ

Thang Chung edited this page Aug 5, 2018 · 1 revision
{"catalog_api_scope", "Catalog APIs"}
c.AddPolicy("access_catalog_api", p => p.RequireClaim("scope", "catalog_api_scope"));
{"cart_api_scope", "Cart APIs"}
c.AddPolicy("access_cart_api", p => p.RequireClaim("scope", "cart_api_scope"));
{"inventory_api_scope", "Inventory APIs"}
c.AddPolicy("access_inventory_api", p => p.RequireClaim("scope", "inventory_api_scope"));
{"pricing_api_scope", "Pricing APIs"}
c.AddPolicy("access_pricing_api", p => p.RequireClaim("scope", "pricing_api_scope"));
{"review_api_scope", "Review APIs"}
c.AddPolicy("access_review_api", p => p.RequireClaim("scope", "review_api_scope"));
{"rating_api_scope", "Rating APIs"}
c.AddPolicy("access_rating_api", p => p.RequireClaim("scope", "rating_api_scope"));