Skip to content

Commit c8d0303

Browse files
authored
Merge pull request #1047 from kaneru-soju/swag-dashboard
Add Tinyauth as a valid auth check in swag-proxies.py
2 parents d56841b + 64313ef commit c8d0303

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

root/dashboard/swag-proxies.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
AUTHENTIK_REGEX = r"\n\s+include \/config\/nginx\/authentik-location\.conf;.*"
1414
BASIC_AUTH_REGEX = r"\n\s+auth_basic.*"
1515
LDAP_REGEX = r"\n\s+include \/config\/nginx\/ldap-location\.conf;.*"
16+
TINYAUTH_REGEX = r"\n\s+include \/config\/nginx\/tinyauth-location\.conf;.*"
1617

1718

1819
def find_apps(fast=False):
@@ -50,6 +51,8 @@ def match_auth(auths, app, file_path, content):
5051
auths[app][file_path] = "Basic Auth"
5152
elif re.findall(LDAP_REGEX, content):
5253
auths[app][file_path] = "LDAP"
54+
elif re.findall(TINYAUTH_REGEX, content):
55+
auths[app][file_path] = "Tinyauth"
5356
else:
5457
auths[app][file_path] = "No Auth"
5558

0 commit comments

Comments
 (0)