Member Page Trigger Flow Spec

Login + Navigation + Cross-Site SSO · drafted 08 October 2026 (Thursday, UTC). The operator asked: "We need to figure out what triggers the opening of this client page. Is it by clicking login on the WordPress (Buddy) and/or the main orb-business.com site?" The page in question is the Member Communications Mini-Page (per the prior iteration). This spec captures the trigger flow, the three real options, the recommended pattern, the cross-site SSO, and the navigation logic.

What this page is. The Member Communications Mini-Page's trigger flow is captured on the durable record. The page is the per-member-facing surface (per the prior iteration's spec). The trigger flow names: where the member logs in; what they see after login; how cross-site SSO works; how navigation between orb-business.com and orb-commons.com works. Three real options are surfaced; the agent recommends Option C (unified login via JWT SSO).

Operator context (named 08 October 2026)

"We need to figure out what triggers the opening of this client page. Is it by clicking login on the WordPress (Buddy) and/or the main orb-business.com site?"

The question. The "client page" in question is the Member Communications Mini-Page (per the prior iteration's spec). The operator is asking: where does the member log in to access this page? Is it on orb-commons.com (the BuddyPress site) or on orb-business.com (the main site) or both?


1. The architecture context (per the durable record)

Per the Cross-Site Architecture page and the BuddyPress Profile Template page, the operation's two-site architecture is:

The Member Communications Mini-Page lives on orb-business.com (the main site) because the page's data sources (WooCommerce orders; Orb Credits ledger; charity allocations; messages; project participation) are all on orb-business.com. The page is a per-member-facing surface that's part of the member-account on orb-business.com.


2. The three real options for the trigger flow

2.1 Option A — Login on orb-business.com (unified login on the main site)

The flow:

  1. Member lands on orb-business.com (any page).
  2. Member clicks the "Login" or "My Account" button in the header.
  3. Member enters credentials on the WordPress + WooCommerce login form (on orb-business.com).
  4. After successful login, the member lands on the member-account page on orb-business.com (the WordPress + WooCommerce "My Account" page).
  5. The member-account page has a navigation menu with links to:
  6. Member clicks "My Activity" (or whatever the Member Communications Mini-Page is named) → lands on the page.

Pros:

Cons:

When this is the right choice: The member's first-touch is the main site (orb-business.com); the main site is where most of the action happens.

2.2 Option B — Login on orb-commons.com (BuddyPress-native login)

The flow:

  1. Member lands on orb-commons.com (the BuddyPress site).
  2. Member clicks the "Login" or "Sign In" button in the header.
  3. Member enters credentials on the BuddyPress login form (on orb-commons.com).
  4. After successful login, the member lands on the BuddyPress profile page on orb-commons.com.
  5. The BuddyPress profile page has a navigation menu with links to:
  6. Member clicks "My Activity" (or whatever the Member Communications Mini-Page is named) → lands on the page on orb-business.com.

Pros:

Cons:

When this is the right choice: The member's first-touch is the BuddyPress site (orb-commons.com); the BuddyPress site is where most of the member-management action happens.

2.3 Option C — Unified login via JWT SSO (the recommended pattern)

The flow:

  1. Member lands on either orb-business.com OR orb-commons.com (whichever they come to first).
  2. Member clicks the "Login" or "Sign In" button in the header.
  3. Member is redirected to a unified login service (a single login page that both sites share; the login service is on the canonical site — orb-business.com or orb-commons.com).
  4. Member enters credentials on the unified login form.
  5. After successful login, JWT tokens are generated and stored on both sites (via the JWT SSO mechanism).
  6. Member is redirected back to the site they came from (orb-business.com or orb-commons.com).
  7. The member lands on the appropriate landing page (the member-account page on orb-business.com; the BuddyPress profile on orb-commons.com).
  8. Cross-site navigation is automatic (the JWT tokens are validated on both sites; the member is logged in on both).
  9. Member clicks "My Activity" (or whatever the Member Communications Mini-Page is named) → lands on the page.

Pros:

Cons:

When this is the right choice: The member's experience is unified; the member moves between orb-business.com and orb-commons.com seamlessly; the operation has JWT SSO already configured.

The agent's recommendation. Option C (Unified login via JWT SSO) is the canonical pattern for this operation. The operation already has JWT SSO between orb-business.com and orb-commons.com (per the Cross-Site Architecture page). Unified login is the load-bearing piece for the member's experience. The wiring is more involved but the user experience is significantly better. The operator validates the choice.

3. The recommended flow (Option C — Unified login via JWT SSO)

3.1 The member's first visit (no prior session)

  1. Member lands on orb-business.com (or orb-commons.com; whichever they came to first).
  2. Member clicks the "Login" or "Sign In" button in the header.
  3. Member is redirected to the unified login service: https://login.orb-business.com (or the operator's chosen URL).
  4. Member enters credentials (email + password; or social login; or magic link).
  5. After successful login, the unified login service:
    • Generates a JWT token with the member's ID + expiration + scope.
    • Stores the JWT token in an HTTP-only cookie on the .orb-business.com domain (so the cookie is shared across subdomains).
    • Redirects the member back to the site they came from.
  6. Member lands on the appropriate landing page:
    • If they came from orb-business.com: the member-account page (WordPress + WooCommerce "My Account" page).
    • If they came from orb-commons.com: the BuddyPress profile page.
  7. The member sees the navigation menu (with links to all member-facing surfaces).
  8. Member clicks "My Activity" (or whatever the Member Communications Mini-Page is named) → lands on the page.

3.2 The member's return visit (existing session)

  1. Member lands on orb-business.com (or orb-commons.com).
  2. The JWT cookie is automatically included in the request; the unified login service validates the cookie; the member is logged in.
  3. Member lands on the appropriate landing page (member-account page on orb-business.com; BuddyPress profile on orb-commons.com).
  4. Member clicks "My Activity" → lands on the page.

3.3 The member's cross-site navigation

  1. Member is on orb-business.com (e.g., on the Member Communications Mini-Page).
  2. Member clicks a link to orb-commons.com (e.g., to view their BuddyPress profile).
  3. The JWT cookie is automatically included in the request; orb-commons.com validates the cookie via the unified login service's API; the member is logged in on orb-commons.com.
  4. Member lands on the BuddyPress profile page on orb-commons.com.
  5. Member clicks a link to orb-business.com (e.g., to view their orders) → automatic cross-site navigation; member is logged in on orb-business.com.

4. The unified login service's load-bearing pieces

The unified login service has the following load-bearing pieces:


5. The navigation logic

After the member logs in (via the unified login service), the member lands on the appropriate landing page based on which site they came from. The navigation logic:

The navigation menu is the load-bearing piece for the cross-site experience. The menu is consistent across both sites; the menu links are contextually appropriate (the member doesn't see irrelevant links).


6. The trigger flow's connection to existing surfaces

The trigger flow is connected to existing surfaces on the durable record:


7. The operator's customization decisions (TBD)

Per the operator's pattern of discretion, the customization decisions are operator-curated:


8. Status

What is in place today (08 October 2026):
What is NOT in place today:


9. Operator confirmation — Option C (added 08 October 2026)

Operator confirmation (08 October 2026): "I agree. Option C."

Operator confirms Option C (Unified login via JWT SSO) as the canonical pattern for the trigger flow. The unified login service is the load-bearing piece for the Member Communications Mini-Page's trigger flow. The operation already has JWT SSO between orb-business.com and orb-commons.com (per the Cross-Site Architecture page); unified login extends the existing JWT SSO to a single login service for the member's first-touch experience.

What this means for the durable record:

The next concrete work:

  1. The unified login service's per-component entry on the Cosmic-Commons Components Library Spec. Future-session item.
  2. The unified login service's actual implementation (the login page; the JWT token generation; the cookie storage; the cross-site validation API). Future-session item.
  3. The JWT SSO wiring between orb-business.com and orb-commons.com (per the existing JWT SSO configuration). Future-session item.
  4. The navigation menu wiring on both sites (the cross-site navigation menu; the context-dependent landing pages). Future-session item.
  5. The Member Communications Mini-Page's actual page implementation (per the prior iteration's spec). Future-session item.

Reference: See the Cosmic-Commons Components Library Spec for the unified login service's per-component entry pattern. See the Cross-Site Architecture — Two Sites for the existing JWT SSO configuration. See the Member Communications Mini-Page Spec for the page that opens after the unified login.