{
 "actions": [],
 "allow_rename": 1,
 "autoname": "hash",
 "creation": "2026-02-12 13:46:55.473077",
 "doctype": "DocType",
 "engine": "InnoDB",
 "field_order": [
  "authentication_section",
  "phone",
  "user_id",
  "bearer_token",
  "auth_status",
  "verification_code",
  "last_activity_time",
  "column_break_1",
  "is_default",
  "certificates_section",
  "certificates_json",
  "selected_certificate",
  "selected_certificate_index",
  "selected_certificate_json",
  "taxpayer_section",
  "main_token",
  "choose_taxpayer_response",
  "mygovid_section",
  "mygovid_token",
  "amas_section",
  "amas_auth_status",
  "amas_account_name",
  "amas_account_number",
  "column_break_amas",
  "amas_account_oid",
  "amas_last_activity",
  "amas_session",
  "amas_csrf_token"
 ],
 "fields": [
  {
   "fieldname": "authentication_section",
   "fieldtype": "Section Break",
   "label": "Authentication"
  },
  {
   "fieldname": "phone",
   "fieldtype": "Data",
   "in_list_view": 1,
   "label": "Phone",
   "reqd": 1
  },
  {
   "fieldname": "user_id",
   "fieldtype": "Data",
   "in_list_view": 1,
   "label": "ID",
   "reqd": 1
  },
  {
   "fieldname": "bearer_token",
   "fieldtype": "Small Text",
   "hidden": 1,
   "label": "Bearer Token"
  },
  {
   "default": "Not Authenticated",
   "fieldname": "auth_status",
   "fieldtype": "Select",
   "label": "Auth Status",
   "options": "Not Authenticated\nWaiting for confirmation\nAuthenticated\nFully Authenticated\nFailed",
   "read_only": 1
  },
  {
   "fieldname": "column_break_1",
   "fieldtype": "Column Break"
  },
  {
   "default": "0",
   "fieldname": "is_default",
   "fieldtype": "Check",
   "label": "Is Default"
  },
  {
   "fieldname": "certificates_section",
   "fieldtype": "Section Break",
   "label": "Certificates"
  },
  {
   "fieldname": "certificates_json",
   "fieldtype": "Code",
   "hidden": 1,
   "label": "Certificates JSON",
   "options": "JSON",
   "read_only": 1
  },
  {
   "fieldname": "selected_certificate",
   "fieldtype": "Data",
   "label": "Selected Certificate",
   "read_only": 1
  },
  {
   "fieldname": "selected_certificate_index",
   "fieldtype": "Data",
   "hidden": 1,
   "label": "Selected Certificate Index"
  },
  {
   "fieldname": "selected_certificate_json",
   "fieldtype": "Code",
   "hidden": 1,
   "label": "Selected Certificate Details",
   "options": "JSON",
   "read_only": 1
  },
  {
   "fieldname": "taxpayer_section",
   "fieldtype": "Section Break",
   "label": "Taxpayer Information"
  },
  {
   "description": "Primary token for all API operations",
   "fieldname": "main_token",
   "fieldtype": "Small Text",
   "hidden": 1,
   "label": "Main Token"
  },
  {
   "fieldname": "choose_taxpayer_response",
   "fieldtype": "Code",
   "hidden": 1,
   "label": "Taxpayer Response",
   "options": "JSON",
   "read_only": 1
  },
  {
   "fieldname": "verification_code",
   "fieldtype": "Data",
   "hidden": 1,
   "label": "Verification Code"
  },
  {
   "fieldname": "mygovid_section",
   "fieldtype": "Section Break",
   "label": "MyGovID"
  },
  {
   "description": "Token from mygovid.gov.az for other government services",
   "fieldname": "mygovid_token",
   "fieldtype": "Small Text",
   "label": "MyGovID Token"
  },
  {
   "fieldname": "last_activity_time",
   "fieldtype": "Datetime",
   "label": "Last Activity Time"
  },
  {
   "fieldname": "amas_section",
   "fieldtype": "Section Break",
   "label": "\u018fMAS (e-social.gov.az)"
  },
  {
   "default": "Not Connected",
   "fieldname": "amas_auth_status",
   "fieldtype": "Select",
   "in_list_view": 1,
   "label": "\u018fMAS Status",
   "options": "Not Connected\nWaiting for SSO\nConnected\nError",
   "read_only": 1
  },
  {
   "fieldname": "amas_account_name",
   "fieldtype": "Data",
   "label": "\u018fMAS Account Name",
   "read_only": 1
  },
  {
   "fieldname": "amas_account_number",
   "fieldtype": "Data",
   "label": "\u018fMAS Account VOEN",
   "read_only": 1
  },
  {
   "fieldname": "column_break_amas",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "amas_account_oid",
   "fieldtype": "Small Text",
   "label": "AMAS Account OID"
  },
  {
   "fieldname": "amas_last_activity",
   "fieldtype": "Datetime",
   "label": "\u018fMAS Last Activity",
   "read_only": 1
  },
  {
   "fieldname": "amas_session",
   "fieldtype": "Small Text",
   "label": "\u018fMAS Session"
  },
  {
   "fieldname": "amas_csrf_token",
   "fieldtype": "Small Text",
   "hidden": 1,
   "label": "\u018fMAS CSRF Token"
  }
 ],
 "index_web_pages_for_search": 1,
 "links": [],
 "modified": "2026-02-12 21:52:52.885253",
 "modified_by": "Administrator",
 "module": "Invoice Az",
 "name": "Asan Login",
 "naming_rule": "Random",
 "owner": "Administrator",
 "permissions": [
  {
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "System Manager",
   "share": 1,
   "write": 1
  }
 ],
 "row_format": "Dynamic",
 "sort_field": "modified",
 "sort_order": "DESC",
 "states": []
}
