CreatorSpace Wiki Demo:Slack SSO and Provisioning Test Plan

From CreatorSpace Wiki Demo
Revision as of 09:30, 14 September 2026 by WikiAdmin (talk | contribs) (Seed CreatorSpace Wiki POC)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Proof of concept. This page is sample content for the CreatorSpace Wiki POC. It does not represent approved CreatorSpace policy, verified equipment instructions, or real member data.

Slack SSO and Provisioning Test Plan

This page tracks the next test track for connecting the local CreatorSpace Wiki POC to a Slack workspace controlled by Nathan. It is a plan, not an implemented integration.

Goal

Test whether members can use Slack as the sign-in identity for the wiki and whether a new Slack workspace member can automatically receive or link a wiki account.

What The Test Needs

  • A Slack app installed in the test workspace.
  • A reachable HTTPS callback URL for the local wiki or a small local integration service, usually through a tunnel during testing.
  • Slack OpenID Connect settings for Sign in with Slack using the openid, profile, and email scopes.
  • MediaWiki authentication extensions: PluggableAuth plus OpenID Connect.
  • A private place for Slack client ID, client secret, signing secret, bot token, allowed workspace ID, and test configuration.
  • An account-linking rule based on stable Slack team/user identifiers, not display names.
  • A provisioning rule that decides who should get wiki access when Slack sends a new-member event.
  • An offboarding/reconciliation rule for disabled Slack accounts, guests, bots, former members, and changed email addresses.
Slack workspace->OIDC login->MediaWiki account->Role mapping->Wiki access

For the first experiment, keep two flows separate:

  1. Login flow: the user clicks "Sign in with Slack", Slack redirects back to the wiki, and MediaWiki creates or links the local account.
  2. Provisioning flow: Slack sends a team_join event to a small service, the service checks the workspace and eligibility rule, then creates or marks a wiki account ready for first login.

MediaWiki Work

  • Add PluggableAuth and OpenID Connect to the Docker image.
  • Enable autocreateaccount only for the authentication path being tested.
  • Keep a local emergency admin login during the test.
  • Configure the provider URL as Slack's OpenID issuer and store the Slack client credentials outside committed files.
  • Decide whether Slack-provided real name and email should overwrite wiki-local fields on every login.
  • Confirm that existing accounts can be linked without losing edit history.

Slack Work

  • Create a Slack app in the controlled test workspace.
  • Add redirect URLs for the test wiki callback.
  • Add OpenID scopes: openid, profile, and email.
  • Enable Events API delivery to the provisioning service.
  • Subscribe to team_join for join provisioning and user_change for profile/status changes.
  • Verify all Slack event requests with Slack's signing secret.
  • Keep Sign in with Slack identity scopes separate from bot/event scopes.

Account Policy To Decide Before Testing

  • One human should map to one wiki account.
  • Role accounts such as steward or treasurer should become roles or permissions on a personal account.
  • Public person profiles should remain opt-in and should not be auto-created from Slack profile data.
  • Slack membership should not automatically mean equipment authorization, steward rights, or administrator rights.
  • Former members should keep attribution for prior wiki edits even if their current access changes.

Test Cases

Case Expected result
Existing wiki admin logs in locally Emergency local account still works.
Existing wiki user links Slack identity Same wiki account is reused; edit history remains attached.
New Slack member signs in Wiki account is created or linked under the expected naming rule.
Slack sends team_join Provisioning service records the member and sends a welcome link or prepares first login.
Bot, guest, or outside workspace identity appears No automatic member-level wiki rights are granted.
Slack email changes Stable Slack ID remains the account key; email is updated only according to policy.

Sources