Skip to content

feat: Add sample RegistrationGuard implementation for reference #61

Closed

Description

@devondragon

Summary

Add a profile-gated sample RegistrationGuard implementation to the demo app so consumers have a concrete, copy-paste reference for using the Registration Guard SPI.

Related

Approach

  • Create a DomainRegistrationGuard component gated behind the registration-guard Spring profile
  • Allows only @example.com emails for form/passwordless registration, permits all OAuth2/OIDC
  • Does not affect normal demo app usage or Playwright tests

Acceptance Criteria

  • Sample guard activates only when registration-guard profile is active
  • Guard demonstrates domain restriction + OAuth2/OIDC bypass pattern
  • Demo app builds and existing tests pass without the profile active

Activity

  1. added a commit that references this issue on Mar 12, 2026
    5ba86c4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions