From 7ff7bfeb5857d4dbc809616c9122231c72506039 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 26 Apr 2021 16:44:13 +0200 Subject: [PATCH] core: fix incorrect styling for bse_full template Signed-off-by: Jens Langhammer --- authentik/core/templates/login/base_full.html | 4 ++++ authentik/providers/oauth2/views/authorize.py | 2 +- web/rollup.config.js | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/authentik/core/templates/login/base_full.html b/authentik/core/templates/login/base_full.html index 2e2854f73..347036a92 100644 --- a/authentik/core/templates/login/base_full.html +++ b/authentik/core/templates/login/base_full.html @@ -3,6 +3,10 @@ {% load static %} {% load i18n %} +{% block head_before %} + +{% endblock %} + {% block body %}
diff --git a/authentik/providers/oauth2/views/authorize.py b/authentik/providers/oauth2/views/authorize.py index 12265f992..cc71c7a29 100644 --- a/authentik/providers/oauth2/views/authorize.py +++ b/authentik/providers/oauth2/views/authorize.py @@ -291,7 +291,7 @@ class OAuthFulfillmentStage(StageView): GrantTypes.HYBRID, ]: code = self.params.create_code(self.request) - code.save() + code.save(force_insert=True) if self.params.grant_type == GrantTypes.AUTHORIZATION_CODE: query_params["code"] = code.code diff --git a/web/rollup.config.js b/web/rollup.config.js index 001108d40..947e92621 100644 --- a/web/rollup.config.js +++ b/web/rollup.config.js @@ -15,6 +15,7 @@ const extensions = [ const resources = [ { src: "node_modules/rapidoc/dist/rapidoc-min.js", dest: "dist/" }, + { src: "node_modules/@patternfly/patternfly/patternfly.min.css", dest: "dist/" }, { src: "node_modules/@patternfly/patternfly/patternfly-base.css", dest: "dist/" }, { src: "node_modules/@patternfly/patternfly/components/Page/page.css", dest: "dist/" }, { src: "node_modules/@patternfly/patternfly/components/EmptyState/empty-state.css", dest: "dist/" },