This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Author |
SHA1 |
Message |
Date |
Jens Langhammer
|
30aa06da14
|
automated tests
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
|
2023-03-22 23:19:16 +01:00 |
4 changed files with
44 additions and
3 deletions
|
|
|
@ -8,7 +8,14 @@
|
|
|
|
|
<link rel="icon" href="{{ tenant.branding_favicon }}">
|
|
|
|
|
<link rel="shortcut icon" href="{{ tenant.branding_favicon }}">
|
|
|
|
|
{% if flow.compatibility_mode and not inspector %}
|
|
|
|
|
<script>ShadyDOM = { force: !navigator.webdriver };</script>
|
|
|
|
|
<script>
|
|
|
|
|
ShadyDOM = { force: true };
|
|
|
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
|
|
|
document.querySelector = document.__shady_native_querySelector;
|
|
|
|
|
document.querySelectorAll = document.__shady_native_querySelectorAll;
|
|
|
|
|
document.getElementById = document.__shady_native_getElementById;
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% include "base/header_js.html" %}
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
@ -81,8 +81,10 @@ def authentik_user_agent() -> str:
|
|
|
|
|
return f"authentik@{get_full_version()}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_http_session() -> Session:
|
|
|
|
|
def get_http_session(**kwargs) -> Session:
|
|
|
|
|
"""Get a requests session with common headers"""
|
|
|
|
|
session = Session()
|
|
|
|
|
for key, value in kwargs.items():
|
|
|
|
|
setattr(session, key, value)
|
|
|
|
|
session.headers["User-Agent"] = authentik_user_agent()
|
|
|
|
|
return session
|
|
|
|
|
|
|
|
@ -16,5 +16,36 @@
|
|
|
|
|
"client_id": "ad64aeaf1efe388ecf4d28fcc537e8de08bcae26",
|
|
|
|
|
"client_secret": "ff2e34a5b04c99acaf7241e25a950e7f6134c86936923d8c698d8f38bd57647750d661069612c0ee55045e29fe06aa101804bdae38e8360647d595e771fea789"
|
|
|
|
|
},
|
|
|
|
|
"consent": {}
|
|
|
|
|
"consent": {},
|
|
|
|
|
"browser": [
|
|
|
|
|
{
|
|
|
|
|
"match": "http://host.docker.internal:9000/application/o/authorize*",
|
|
|
|
|
"tasks": [
|
|
|
|
|
{
|
|
|
|
|
"task": "Login",
|
|
|
|
|
"optional": true,
|
|
|
|
|
"match": "http://host.docker.internal:9000/if/flow/default-authentication-flow*",
|
|
|
|
|
"commands": [
|
|
|
|
|
[
|
|
|
|
|
"text",
|
|
|
|
|
"css",
|
|
|
|
|
"[name=uidField]",
|
|
|
|
|
"akadmin"
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
"text",
|
|
|
|
|
"css",
|
|
|
|
|
"[name=password]",
|
|
|
|
|
"foo"
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
"click",
|
|
|
|
|
"css",
|
|
|
|
|
"button"
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@ -210,6 +210,7 @@ export class IdentificationStage extends BaseStage<
|
|
|
|
|
<input
|
|
|
|
|
type=${type}
|
|
|
|
|
name="uidField"
|
|
|
|
|
id="uidField"
|
|
|
|
|
placeholder=${label}
|
|
|
|
|
autofocus=""
|
|
|
|
|
autocomplete="username"
|
|
|
|
|