2026-03-11 15:34:08 -03:00
|
|
|
{
|
|
|
|
|
"auth_methods": {
|
|
|
|
|
"password_local": {
|
|
|
|
|
"type": "local_password"
|
|
|
|
|
},
|
|
|
|
|
"totp_default": {
|
2026-03-14 11:49:34 -03:00
|
|
|
"type": "totp",
|
|
|
|
|
"totp_secret": "",
|
|
|
|
|
"totp_before_auth": false
|
2026-03-11 15:34:08 -03:00
|
|
|
},
|
|
|
|
|
"google_workspace_admins": {
|
|
|
|
|
"type": "oidc",
|
|
|
|
|
"provider": "google",
|
|
|
|
|
"client_id": "GOOGLE_CLIENT_ID",
|
|
|
|
|
"client_secret": "GOOGLE_CLIENT_SECRET",
|
|
|
|
|
"allowed_domains": [
|
|
|
|
|
"example.com"
|
|
|
|
|
],
|
|
|
|
|
"allowed_emails": [
|
|
|
|
|
"eduardo@example.com",
|
|
|
|
|
"alice@example.com"
|
|
|
|
|
]
|
2026-03-14 11:49:34 -03:00
|
|
|
},
|
|
|
|
|
"office_network": {
|
|
|
|
|
"type": "ip_address",
|
|
|
|
|
"rules": [
|
|
|
|
|
{
|
|
|
|
|
"address": "10.0.0.0",
|
|
|
|
|
"prefix_length": 24,
|
|
|
|
|
"action": "allow",
|
|
|
|
|
"description": "Office LAN"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"address": "192.168.1.100",
|
|
|
|
|
"prefix_length": null,
|
|
|
|
|
"action": "deny",
|
|
|
|
|
"description": "Blocked workstation"
|
|
|
|
|
}
|
|
|
|
|
]
|
2026-03-11 15:34:08 -03:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"groups": {
|
|
|
|
|
"admins": {
|
|
|
|
|
"users": [
|
|
|
|
|
"eduardo",
|
|
|
|
|
"alice"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"ops": {
|
|
|
|
|
"users": [
|
|
|
|
|
"bob",
|
|
|
|
|
"charlie"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"staff": {
|
|
|
|
|
"users": [
|
|
|
|
|
"david"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"users": {
|
|
|
|
|
"eduardo": {
|
|
|
|
|
"email": "eduardo@example.com",
|
2026-03-14 11:49:34 -03:00
|
|
|
"password_hash": "$argon2id$hash",
|
|
|
|
|
"totp_secret": "JBSWY3DPEHPK3PXP"
|
2026-03-11 15:34:08 -03:00
|
|
|
},
|
|
|
|
|
"alice": {
|
|
|
|
|
"email": "alice@example.com",
|
2026-03-14 11:49:34 -03:00
|
|
|
"password_hash": "$argon2id$hash",
|
|
|
|
|
"totp_secret": ""
|
2026-03-11 15:34:08 -03:00
|
|
|
},
|
|
|
|
|
"bob": {
|
|
|
|
|
"email": "bob@example.com",
|
2026-03-14 11:49:34 -03:00
|
|
|
"password_hash": "$argon2id$hash",
|
|
|
|
|
"totp_secret": ""
|
2026-03-11 15:34:08 -03:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"policies": {
|
|
|
|
|
"public": {
|
2026-03-14 11:49:34 -03:00
|
|
|
"policy_type": "bypass",
|
|
|
|
|
"groups": [],
|
|
|
|
|
"methods": []
|
2026-03-11 15:34:08 -03:00
|
|
|
},
|
|
|
|
|
"api_users": {
|
2026-03-14 10:14:19 -03:00
|
|
|
"policy_type": "protected",
|
2026-03-11 15:34:08 -03:00
|
|
|
"groups": [
|
|
|
|
|
"staff"
|
|
|
|
|
],
|
|
|
|
|
"methods": [
|
|
|
|
|
"password_local"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"ops_access": {
|
2026-03-14 10:14:19 -03:00
|
|
|
"policy_type": "protected",
|
2026-03-11 15:34:08 -03:00
|
|
|
"groups": [
|
|
|
|
|
"ops"
|
|
|
|
|
],
|
|
|
|
|
"methods": [
|
|
|
|
|
"password_local"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"admin_access": {
|
2026-03-14 10:14:19 -03:00
|
|
|
"policy_type": "protected",
|
2026-03-11 15:34:08 -03:00
|
|
|
"groups": [
|
|
|
|
|
"admins"
|
|
|
|
|
],
|
|
|
|
|
"methods": [
|
|
|
|
|
"password_local",
|
|
|
|
|
"totp_default"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"google_admin_access": {
|
2026-03-14 10:14:19 -03:00
|
|
|
"policy_type": "protected",
|
2026-03-11 15:34:08 -03:00
|
|
|
"groups": [
|
|
|
|
|
"admins"
|
|
|
|
|
],
|
|
|
|
|
"methods": [
|
|
|
|
|
"google_workspace_admins",
|
|
|
|
|
"totp_default"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|