Unverified Commit 97e7825a authored by Marius van den Beek's avatar Marius van den Beek Committed by GitHub
Browse files

Merge pull request #18683 from mvdbeek/only_load_authnz_routes_when_oidc_enabled

[24.1] Only load authnz routes when oidc enabled
parents 6481c7b6 7a06ecbf
Loading
Loading
Loading
Loading
+12 −11
Original line number Diff line number Diff line
@@ -89,6 +89,7 @@ def app_pair(global_conf, load_app_kwds=None, wsgi_preflight=True, **kwargs):
    webapp.add_route("/activate", controller="user", action="activate")

    # Authentication endpoints.
    if app.config.enable_oidc:
        webapp.add_route("/authnz/", controller="authnz", action="index", provider=None)
        webapp.add_route("/authnz/{provider}/login", controller="authnz", action="login", provider=None)
        webapp.add_route("/authnz/{provider}/callback", controller="authnz", action="callback", provider=None)