-
-
Notifications
You must be signed in to change notification settings - Fork 923
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* main: (29 commits) website/integrations: aws: cleanup (#10355) web: bump API Client version (#10389) web/flows: Simplified flow executor (#10296) website/docs: sources: ldap: remove extra example (#10387) website/docs: add new content from old PR #9524 (#10158) stages/authenticator_validate: fix friendly_name being required (#10382) core: bump go api client (#10383) web: bump API Client version (#10381) outposts: make refresh interval configurable (#10138) core, web: update translations (#10378) web: bump @sentry/browser from 8.13.0 to 8.14.0 in /web in the sentry group (#10379) core: bump goauthentik.io/api/v3 from 3.2024060.3 to 3.2024060.4 (#10380) sources/oauth: fix link not being saved (#10374) website/docs: update postgres on docker: fix backtick (#10372) website/integrations: apache guacamole: cleanup doc page (#10354) web: bump API Client version (#10371) Revert "core: applications api: add option to only list apps with launch url (#10336)" (#10370) web: bump @wdio/cli from 8.39.0 to 8.39.1 in /web (#10362) core: bump goauthentik.io/api/v3 from 3.2024060.2 to 3.2024060.3 (#10356) website: bump react-tooltip from 5.27.0 to 5.27.1 in /website (#10357) ...
- Loading branch information
Showing
59 changed files
with
4,771 additions
and
723 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{% load static %} | ||
{% load i18n %} | ||
{% load authentik_core %} | ||
|
||
<!DOCTYPE html> | ||
|
||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | ||
<title>{% block title %}{% trans title|default:brand.branding_title %}{% endblock %}</title> | ||
<link rel="icon" href="{{ brand.branding_favicon }}"> | ||
<link rel="shortcut icon" href="{{ brand.branding_favicon }}"> | ||
{% block head_before %} | ||
{% endblock %} | ||
<link rel="stylesheet" type="text/css" href="{% static 'dist/sfe/bootstrap.min.css' %}"> | ||
<meta name="sentry-trace" content="{{ sentry_trace }}" /> | ||
{% include "base/header_js.html" %} | ||
<style> | ||
html, | ||
body { | ||
height: 100%; | ||
} | ||
body { | ||
background-image: url("{{ flow.background_url }}"); | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
} | ||
.card { | ||
padding: 3rem; | ||
} | ||
|
||
.form-signin { | ||
max-width: 330px; | ||
padding: 1rem; | ||
} | ||
|
||
.form-signin .form-floating:focus-within { | ||
z-index: 2; | ||
} | ||
.brand-icon { | ||
max-width: 100%; | ||
} | ||
</style> | ||
</head> | ||
<body class="d-flex align-items-center py-4 bg-body-tertiary"> | ||
<div class="card m-auto"> | ||
<main class="form-signin w-100 m-auto" id="flow-sfe-container"> | ||
</main> | ||
<span class="mt-3 mb-0 text-muted text-center">{% trans 'Powered by authentik' %}</span> | ||
</div> | ||
<script src="{% static 'dist/sfe/index.js' %}"></script> | ||
</body> | ||
</html> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
"""Interface views""" | ||
|
||
from typing import Any | ||
|
||
from django.shortcuts import get_object_or_404 | ||
from ua_parser.user_agent_parser import Parse | ||
|
||
from authentik.core.views.interface import InterfaceView | ||
from authentik.flows.models import Flow | ||
|
||
|
||
class FlowInterfaceView(InterfaceView): | ||
"""Flow interface""" | ||
|
||
def get_context_data(self, **kwargs: Any) -> dict[str, Any]: | ||
kwargs["flow"] = get_object_or_404(Flow, slug=self.kwargs.get("flow_slug")) | ||
kwargs["inspector"] = "inspector" in self.request.GET | ||
return super().get_context_data(**kwargs) | ||
|
||
def compat_needs_sfe(self) -> bool: | ||
"""Check if we need to use the simplified flow executor for compatibility""" | ||
ua = Parse(self.request.META.get("HTTP_USER_AGENT", "")) | ||
if ua["user_agent"]["family"] == "IE": | ||
return True | ||
# Only use SFE for Edge 18 and older, after Edge 18 MS switched to chromium which supports | ||
# the default flow executor | ||
if ( | ||
ua["user_agent"]["family"] == "Edge" | ||
and int(ua["user_agent"]["major"]) <= 18 # noqa: PLR2004 | ||
): # noqa: PLR2004 | ||
return True | ||
# https://github.com/AzureAD/microsoft-authentication-library-for-objc | ||
# Used by Microsoft Teams/Office on macOS, and also uses a very outdated browser engine | ||
if "PKeyAuth" in ua["string"]: | ||
return True | ||
return False | ||
|
||
def get_template_names(self) -> list[str]: | ||
if self.compat_needs_sfe() or "sfe" in self.request.GET: | ||
return ["if/flow-sfe.html"] | ||
return ["if/flow.html"] |
Oops, something went wrong.