Ystack

Riguz留言 | 贡献2025年8月17日 (日) 13:40的版本 (创建页面,内容为“ = Services and responsibilities == Auth / Identity (Keycloak) == Responsibility: Authentication, user identity, SSO, OIDC tokens. Data owned: Keycloak user record (sub), basic profile attributes. Notes: Other services store keycloak_id as foreign reference only. == Customer Service (customer profile / account)== Responsibility: canonical customer profile (name, emails, billing address, company, contact info), payment-customer mapping (e.g., providerCustomerId…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

= Services and responsibilities

Auth / Identity (Keycloak)

Responsibility: Authentication, user identity, SSO, OIDC tokens. Data owned: Keycloak user record (sub), basic profile attributes. Notes: Other services store keycloak_id as foreign reference only.

Customer Service (customer profile / account)

Responsibility: canonical customer profile (name, emails, billing address, company, contact info), payment-customer mapping (e.g., providerCustomerId), invoice delivery preferences, links to internal user records. Data owned: customer table (customer_id, keycloak_id, contact info, provider customer id, metadata). API examples: GET/PUT customer, attach payment method token, list customer’s subscriptions/orders. When to call: read-heavy for CRM and billing, write when profile changes.