Ctrl K
ComunidadGuías…

specs/connectors-and-methods.feature

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
Feature: Connectors and hosted method availability
  As a tenant administrator
  I want connector settings to control hosted auth and native endpoint access
  So that unavailable identity methods cannot be used accidentally

  Background:
    Given a first admin exists
    And I am signed in to Console

  @entrypoint:product-ui @journey:connectors-email @proof:unit
  Scenario: Email connector drawer controls hosted email-code availability
    When I change the Email connector settings
    Then hosted Email code sign-in follows the saved settings

  @entrypoint:product-ui @journey:connectors-passkeys @proof:unit
  Scenario: Passkey connector manages its relying party configuration
    When I change the Passkey connector settings
    Then the relying party name, identifier, allowed origins, and sign-up availability are persisted
    And hosted passkey authentication uses the saved relying party configuration

  @entrypoint:product-ui @journey:sign-in-method-availability @proof:unit
  Scenario: Hosted sign-in empty-state logic respects enabled methods
    Given only selected built-in methods are enabled
    When I open hosted sign-in
    Then unavailable methods are hidden
    And no empty-method warning is shown while a usable method remains

  @entrypoint:product-ui @journey:phone-sign-in @proof:unit
  Scenario: Phone sign-in availability follows SMS connector settings
    Given phone sign-in is controlled by the SMS connector
    When the SMS connector is enabled or disabled
    Then hosted phone sign-in and native endpoint access follow that setting

  @entrypoint:product-ui @journey:hosted-preview-consistency @proof:unit
  Scenario: Hosted auth preview matches the real hosted card
    When I update hosted method availability in Console
    Then the live preview and /auth/sign-in show the same methods

  @entrypoint:product-ui @journey:onetap-flow @proof:unit
  Scenario: Google One Tap availability is connector-controlled
    Given Google One Tap is configured through a connector
    When I toggle connector availability
    Then hosted auth shows or hides One Tap accordingly

  @entrypoint:product-ui @journey:social-login @proof:unit
  Scenario: Social login availability follows connector settings
    Given a social connector exists
    When the connector is available or unavailable
    Then hosted auth and native social endpoints enforce that state

  @entrypoint:product-ui @journey:oidc-login @proof:unit
  Scenario: A standard OIDC connector can provide hosted login
    Given an enabled OIDC connector has authentication enabled
    When I open hosted sign-in
    Then the OIDC connector is offered as a sign-in method
    And disabling login removes it without deleting the connector

  @entrypoint:product-ui @journey:connector-capabilities @proof:unit
  Scenario: Connector drivers expose independent authentication and resource authorization capabilities
    Given Connector drivers may support authentication, resource authorization, or both
    When I configure a Connector
    Then the Console only offers authentication when its driver supports authentication
    And only a Connector with a configured external authorization facet may be bound to an External Resource Server
    And resource authorization must be configured explicitly and is never inferred from authentication fields
    And a dual-purpose Connector keeps its Better Auth provider and external authorization issuer under one Connector identity
    And the two facets use separate OAuth clients, callbacks, state, token storage, and business semantics
    And disabling authentication does not disable Resource Servers that reference that Connector
    And replacing its external authorization configuration revokes existing resource authorizations so they must be approved again

  @entrypoint:product-ui @journey:connector-secret-upgrade @proof:integration
  Scenario: Existing connector credentials survive encrypted-custody upgrades
    Given an enabled connector was created before encrypted credential custody
    When the upgraded deployment loads that connector
    Then its plaintext client secret is encrypted in place before use
    And the connector remains available for hosted sign-in

  @entrypoint:product-ui @journey:provider-disabled-endpoint-enforcement @proof:unit
  Scenario: Disabled hosted auth providers block native auth endpoints
    Given hosted auth providers are disabled by policy
    When I call their native auth endpoints directly
    Then the endpoints reject the request

  @journey:authentication-config-loading @entrypoint:product-ui @proof:integration
  Scenario: Auth configuration loads only login credentials
    Given enabled login and resource-only Connectors with independently encrypted credentials
    When authentication configuration is initialized
    Then only authentication-enabled Connectors are loaded
    And only their login client secrets are decrypted
    And unrelated resource or registration secrets do not block authentication
    And general page settings are not loaded for provider initialization