← Back to registry

WORKFLOW · login

Universal OS login workflow handling authentication and token generation.

Canonical Definition

{
  "description": "Universal OS login workflow handling authentication and token generation.",
  "edges": [
    {
      "id": "e1",
      "source": "start",
      "target": "verify_credentials"
    },
    {
      "id": "e2",
      "source": "verify_credentials",
      "target": "generate_token"
    },
    {
      "id": "e3",
      "source": "generate_token",
      "target": "end"
    }
  ],
  "name": "standard_login",
  "nodes": [
    {
      "data": {},
      "id": "start",
      "node_type": "start"
    },
    {
      "data": {
        "payload": {
          "query": "SELECT id, email, role FROM users WHERE email = '{{email}}' AND password_hash = '{{password_hash}}' LIMIT 1"
        },
        "title": "Verify User Credentials",
        "tool_name": "memento_query"
      },
      "id": "verify_credentials",
      "node_type": "os_skill"
    },
    {
      "data": {
        "payload": {
          "user_id": "{{verify_credentials.execution_result.id}}"
        },
        "title": "Generate Session Token",
        "tool_name": "authentik_verify"
      },
      "id": "generate_token",
      "node_type": "os_skill"
    },
    {
      "data": {
        "payload": {
          "token": "{{generate_token.execution_result.token}}",
          "user": "{{verify_credentials.execution_result}}"
        },
        "title": "Return Auth Result"
      },
      "id": "end",
      "node_type": "end"
    }
  ]
}