Skip to content

OIDC_SERVER_CLASS only uses defaults when as fallback to OAUTH2_SERVER_CLASS #1603

@jasonhq24

Description

@jasonhq24

Describe the bug

Only the defaults value of OIDC_SERVER_CLASS is being used when in the case of the fallback of no setting for OAUTH2_SERVER_CLASS when OIDC_ENABLED

To Reproduce

If the user hasn't overridden OAUTH2_SERVER_CLASS and they are setting OIDC_ENABLED to True, and they have overridden OIDC_SERVER_CLASS, then only the defaults value of OIDC_SERVER_CLASS is used, instead of the overridden value.

Expected behavior

The user setting of OIDC_SERVER_CLASS should be used, and if not set, fallback to the value in the defaults.

Version

2.3.0 but it's also present in 3.1.0

  • I have tested with the latest published release and it's still a problem.
  • I have tested with the master branch and it's still a problem.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions