Skip to content

frontends.openid_connect._create_provider needs token_endpoint to silence Provider constructor #69

@mrvanes

Description

@mrvanes

When "code" is enabled as response_types_supported in OpenIDConnectFrontend configuration, Provider refuses to instantiate due to missing required token_endpoint. This endpoint will be added later in code where response_types_supported is evaluated (#171) but then it's too late. Adding the following line in frontend/openid_connect.py@74 works around the exception.

            "token_endpoint": True

It's a quick'n'dirty fix but silences the Provider constructor, while eventually creating a correct token_endpoint after completing register_endpoints() anyway.

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