Skip to content

[SelectiveAuthenticator] TypeError when attempting to create SessionTokenAuthenticator #422

@morgan-dgk

Description

@morgan-dgk

Component

SelectiveAuthenticator Component Factory

Description

Attempting to create a SelectiveAuthenticator which includes a SessionTokenAuthenticator currently fails with TypeError: ModelToComponentFactory.create_session_token_authenticator() missing 1 required positional argument: "'name' ","failure_type":"system_error"

This is because create_selective_authenticator does not pass kwargs to the ModelToComponentFactory._create_component_from_modelwhen creating authenticators for the SelectiveAuthenticator. kwargs contains the name argument passed down from create_declarative_streamwhich is required in create_session_token_authenticator

Proposed solution

Pass kwargs to _create_component_from_model when creating authenticators for SelectiveAuthenticator

✅ Yes, I want to contribute

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions