move from authelia implementation to custom authentication gateway

This commit is contained in:
Eduardo Silva
2026-03-16 09:49:17 -03:00
parent d84cf0a174
commit 491e78efdb
6 changed files with 106 additions and 511 deletions

View File

@@ -34,10 +34,14 @@ def build_applications_data():
def _build_auth_method_entry(method):
entry = {'type': method.auth_type}
if method.auth_type == 'totp':
if method.auth_type == 'local_password':
entry['session_expiration_minutes'] = method.session_expiration_minutes
elif method.auth_type == 'totp':
entry['totp_secret'] = method.totp_secret
elif method.auth_type == 'oidc':
entry['session_expiration_minutes'] = method.session_expiration_minutes
entry['provider'] = method.oidc_provider
entry['client_id'] = method.oidc_client_id
entry['client_secret'] = method.oidc_client_secret
@@ -77,7 +81,7 @@ def build_auth_policies_data():
for user in GatekeeperUser.objects.all():
users[user.username] = {
'email': user.email,
'password_hash': user.password_hash or '',
'password_hash': user.password or '',
'totp_secret': user.totp_secret,
}