Compare commits
1 commit
trustchain
...
providers/
Author | SHA1 | Date | |
---|---|---|---|
30aa06da14 |
|
@ -8,7 +8,14 @@
|
||||||
<link rel="icon" href="{{ tenant.branding_favicon }}">
|
<link rel="icon" href="{{ tenant.branding_favicon }}">
|
||||||
<link rel="shortcut icon" href="{{ tenant.branding_favicon }}">
|
<link rel="shortcut icon" href="{{ tenant.branding_favicon }}">
|
||||||
{% if flow.compatibility_mode and not inspector %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% include "base/header_js.html" %}
|
{% include "base/header_js.html" %}
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -81,8 +81,10 @@ def authentik_user_agent() -> str:
|
||||||
return f"authentik@{get_full_version()}"
|
return f"authentik@{get_full_version()}"
|
||||||
|
|
||||||
|
|
||||||
def get_http_session() -> Session:
|
def get_http_session(**kwargs) -> Session:
|
||||||
"""Get a requests session with common headers"""
|
"""Get a requests session with common headers"""
|
||||||
session = Session()
|
session = Session()
|
||||||
|
for key, value in kwargs.items():
|
||||||
|
setattr(session, key, value)
|
||||||
session.headers["User-Agent"] = authentik_user_agent()
|
session.headers["User-Agent"] = authentik_user_agent()
|
||||||
return session
|
return session
|
||||||
|
|
|
@ -16,5 +16,36 @@
|
||||||
"client_id": "ad64aeaf1efe388ecf4d28fcc537e8de08bcae26",
|
"client_id": "ad64aeaf1efe388ecf4d28fcc537e8de08bcae26",
|
||||||
"client_secret": "ff2e34a5b04c99acaf7241e25a950e7f6134c86936923d8c698d8f38bd57647750d661069612c0ee55045e29fe06aa101804bdae38e8360647d595e771fea789"
|
"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
|
<input
|
||||||
type=${type}
|
type=${type}
|
||||||
name="uidField"
|
name="uidField"
|
||||||
|
id="uidField"
|
||||||
placeholder=${label}
|
placeholder=${label}
|
||||||
autofocus=""
|
autofocus=""
|
||||||
autocomplete="username"
|
autocomplete="username"
|
||||||
|
|
Reference in a new issue