Skip to content

auth cookbook is incorrect #207

@DmitriyAlergant

Description

@DmitriyAlergant

The custom OAuth provider class needs to implement

 def is_configured(self):
        return True

Without that Authentik backend does not consider injected provider as configured and fails with an error "You must set the environment variable for at least one oauth provider to use oauth authentication."

See

oauth_providers.py

def get_configured_oauth_providers():
    return [p.id for p in providers if p.is_configured()]

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