b2c-slas
БесплатноБез исполняемых скриптовНе проверенCreate, update, and manage SLAS (Shopper Login and API Access Service) tenants, clients, password action templates, identity providers, and shopper sessions…
от SalesforceCommerceCloud★ 58 звёзд на GitHubОб этом скилле
B2C SLAS Skill
Use the b2c CLI plugin to manage SLAS (Shopper Login and API Access Service) tenants, API clients and credentials, password action templates, identity providers, and shopper sessions.
Important: SLAS is for shopper (customer) authentication used by storefronts and headless commerce. For admin tokens (OCAPI, Admin APIs), use
b2c auth token- see theb2c-configskill.
Tip: If
b2cis not installed globally, usenpx @salesforce/b2c-cliinstead (e.g.,npx @salesforce/b2c-cli slas client list).
Configuration
Values like tenantId, shortCode, slasClientId, and slasClientSecret resolve from dw.json / SFCC_* env vars / the active instance / configuration plugins. Examples below show minimal usage; add flags only to override configured values — passing these as flags is usually unnecessary. If a required value is missing, the CLI emits an actionable error pointing at the flag, env var, and config key.
Run b2c setup inspect to see the resolved configuration and which source provided each value (--json for scripting; secrets stay masked by default). For precedence rules and troubleshooting, see the b2c-cli:b2c-config skill.
Relevant overrides:
--tenant-id/SFCC_TENANT_ID/tenantId--short-code/SFCC_SHORTCODE/shortCode--slas-client-id/SFCC_SLAS_CLIENT_ID/slasClientId--slas-client-secret/SFCC_SLAS_CLIENT_SECRET/slasClientSecret--site-id(alias--channel-id) /SFCC_SITE_ID/siteId— forclient templateandshopper logout
Commands that target an existing client (get, update, delete, open, and client template) use the configured slasClientId when their positional client ID is omitted. A positional client ID takes precedence over configuration.
When to Use
Common scenarios requiring SLAS client management:
- Testing Custom APIs: Create a client with custom scopes (e.g.,
c_loyalty) to test your Custom API endpoints - PWA/Headless Development: Configure clients for composable storefronts
- Integration Testing: Create dedicated test clients with specific scope sets
- Passwordless login and password reset: Manage the email/SMS templates SLAS sends (
slas client template) - Social and third-party login: Configure identity providers (
slas idp) - Security incidents: Log shoppers out of all sessions (
slas shopper logout) - GDPR deletion requests: Delete a shopper's SLAS records (
slas shopper delete)
Examples
List SLAS Clients
# list all SLAS clients for the configured tenant
b2c slas client list
# JSON output
b2c slas client list --json
# target a different tenant than the active config
b2c slas client list --tenant-id abcd_123
Get SLAS Client Details
# get details for the configured SLAS client
b2c slas client get
# override the configured client ID
b2c slas client get my-client-id
Create SLAS Client
# create a new SLAS client with default scopes (auto-generates UUID client ID)
b2c slas client create --channels RefArch --default-scopes --redirect-uri http://localhost:3000/callback
# create with a specific client ID and custom scopes
b2c slas client create my-client-id --channels RefArch --scopes sfcc.shopper-products,sfcc.shopper-search --redirect-uri http://localhost:3000/callback
# create a public client
b2c slas client create --channels RefArch --default-scopes --redirect-uri http://localhost:3000/callback --public
# create client without auto-creating tenant (if you manage tenants separately)
b2c slas client create --channels RefArch --default-scopes --redirect-uri http://localhost:3000/callback --no-create-tenant
# output as JSON (useful for capturing the generated secret)
b2c slas client create --channels RefArch --default-scopes --redirect-uri http://localhost:3000/callback --json
Note: By default, the tenant is automatically created if it doesn't exist.
Warning: Use --scopes (plural) for client scopes, NOT --auth-scope (singular). The --auth-scope flag is a global authentication option for OAuth scopes.
Create Client for Custom API Testing
When testing a Custom API that requires custom scopes:
# Create a private client with custom scope for testing
# Replace c_my_scope with your API's custom scope from schema.yaml
b2c slas client create \
--channels RefArch \
--default-scopes \
--scopes "c_my_scope" \
--redirect-uri http://localhost:3000/callback \
--json
# Output includes client_id and client_secret - save these for token requests
Important: The custom scope in your SLAS client must match the scope defined in your Custom API's schema.yaml security section.
Get a Shopper Token
Use b2c slas token to obtain a shopper access token for API testing. The --site-id is specific to the request and must be provided per call.
The command applies shared HTTP middleware, including headers from SFCC_EXTRA_HEADERS
(a
Установить b2c-slas в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл b2c-slas?
Create, update, and manage SLAS (Shopper Login and API Access Service) tenants, clients, password action templates, identity providers, and shopper sessions using the b2c CLI. Use this skill whenever the user needs to provision a SLAS client, update OAuth scopes, rotate client secrets, get a shopper access token, configure passwordless or password reset email/SMS templates, set up social login (Google, Apple, Okta, and others), force shoppers to log out, delete shopper login data for GDPR, or configure shopper authentication for headless, PWA, or Storefront Next (SFNext) storefronts — even if they just say "I need a shopper token" or "set up auth for my storefront".
Как установить скилл b2c-slas?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл b2c-slas запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic