Unverified Commit 2700989c authored by marius-mather's avatar marius-mather
Browse files

Use attribute access to get app_config value

parent 6d7deabd
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -120,9 +120,8 @@ class PSAAuthnz(IdentityProvider):
        # Use a custom auth pipeline if configured.
        auth_pipeline = app_config.get("oidc_auth_pipeline", AUTH_PIPELINE)
        # Add extra steps to the auth pipeline if configured.
        pipeline_extra = app_config.get("oidc_auth_pipeline_extra", [])
        if pipeline_extra:
            auth_pipeline = auth_pipeline + tuple(pipeline_extra)
        if app_config.oidc_auth_pipeline_extra:
            auth_pipeline = auth_pipeline + tuple(app_config.oidc_auth_pipeline_extra)
        self.config["SOCIAL_AUTH_PIPELINE"] = auth_pipeline
        self.config["DISCONNECT_PIPELINE"] = DISCONNECT_PIPELINE
        self.config[setting_name("AUTHENTICATION_BACKENDS")] = (BACKENDS[provider],)