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/" },