Skip to content

[Feature]: Separate public username availability from sensitive identifier checks #161

Description

@mckaragoz

Problem

UltimateAuth supports username, email, and phone as login identifiers. This does not imply that all identifier types should be publicly enumerable.

The current identifier availability endpoint allows applications to expose availability results for all supported identifier types through a single action.

Although developers can disable the endpoint using DisabledActions, they cannot independently expose public username availability while restricting email and phone availability.

Proposal

  • Introduce a dedicated public username availability endpoint.
  • Keep general identifier availability as a separate, independently configurable endpoint.
  • Preserve support for email and phone as login identifiers.
  • Allow developers to disable either endpoint independently.
  • Document the privacy implications of anonymous availability queries.
  • Evaluate backward compatibility and migration requirements before implementation.

Future consideration: Strict Protection

Consider an optional UltimateAuth Strict Protection configuration profile that enforces stronger security defaults.

The profile could reject unsafe or contradictory configurations during application startup, including publicly exposed sensitive identifier availability, depending on its defined guarantees.

This profile should be designed separately and should not be implemented as part of this issue.

Acceptance criteria

  • Public username availability can be enabled without exposing email or phone availability.
  • Endpoint access is independently configurable.
  • Existing login identifier functionality remains unchanged.
  • Authorization and rate limiting remain effective.
  • Integration tests cover anonymous access, disabled endpoints, and identifier-type restrictions.
  • Compatibility implications are documented.

Out of scope

  • Changes to login identifier resolution.
  • Email or phone ownership verification.
  • Anonymous registration response redesign.
  • Strict Protection implementation.

Activity

  1. added this to the v0.3.0 milestone on Nov 11, 2026
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

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions