{
  "app": {
    "name": "Mokabla",
    "url": "https://www.mokabla.com",
    "description": "Real interview questions from companies in Egypt, organised by company. Access is sold per company for 30 days."
  },
  "page": {
    "kind": "question",
    "title": "Question · authentication-and-authorization",
    "humanPath": "/en/c/easygenerator/authentication-and-authorization",
    "humanOnly": false
  },
  "identity": {
    "class": "declared",
    "agent": "ClaudeBot",
    "operator": "Anthropic",
    "verified": false,
    "reason": "The user agent is ClaudeBot (Anthropic), which identifies itself as an AI agent.",
    "signals": [
      "Known agent user agent"
    ],
    "claimable": false
  },
  "state": {
    "question": {
      "slug": "authentication-and-authorization",
      "title": "Authentication and Authorization",
      "difficulty": "medium",
      "tags": [
        "coding",
        "system-design",
        "sql",
        "swe",
        "take-home"
      ],
      "is_free": true,
      "locked": false,
      "frequency": 1,
      "last_reported_at": "2026-11-27T13:38:14.924225Z",
      "url": "https://www.mokabla.com/en/c/easygenerator/authentication-and-authorization",
      "agent": {
        "page": "https://www.mokabla.com/agent/en/c/easygenerator/authentication-and-authorization",
        "question": "https://www.mokabla.com/agent/_call/get_question?company=easygenerator&question=authentication-and-authorization"
      },
      "company": {
        "slug": "easygenerator",
        "name_en": "Easygenerator"
      },
      "body_md": "implement user authentication with JWT-based sessions using HTTP-only cookies, a protected dashboard, and full form validation on both the client and server.\n\nFeatures: \n\n- User Registration: Sign up with name, email, and password. Password is validated for minimum length, an uppercase letter, and a number.\n- User Login : Authenticate with email and password. Issues a secure JWT stored in an HTTP-only cookie.\nProtected Dashboard — Accessible only to authenticated users. Redirects unauthenticated visitors to the sign-in page.\n- Logout : Clears the auth cookie server-side.\n- Current User Endpoint : /auth/me returns the authenticated user's ID and email.\n- Client-side Validation \n- Server-side Validation: DTOs validated with class-validator on every request.",
      "follow_ups_md": null
    },
    "paid": false,
    "access": "Question bodies are paid content: a person buys 30 days of access per company (200 EGP or 200 points) in the human app. Agents get titles, tags and difficulty; bodies only for free questions."
  },
  "actions": [
    {
      "name": "get_question",
      "description": "One question with its body. Bodies are paid content unless the question is free.",
      "permission": "allow",
      "sideEffect": "read",
      "input": {
        "company": "string",
        "question": "string"
      },
      "href": "https://www.mokabla.com/agent/_call/get_question?company=easygenerator&question=authentication-and-authorization",
      "ready": true,
      "missing": [],
      "humanPath": "https://www.mokabla.com/en/pricing"
    },
    {
      "name": "list_questions",
      "description": "The questions reported at a company: titles, tags, difficulty, whether each is free or paid.",
      "permission": "allow",
      "sideEffect": "read",
      "input": {
        "company": "string",
        "page": "number?"
      },
      "href": "https://www.mokabla.com/agent/_call/list_questions?company=easygenerator",
      "ready": true,
      "missing": []
    },
    {
      "name": "buy_access",
      "description": "Buy 30 days of access to a company.",
      "permission": "block",
      "reason": "This action is for people only",
      "ruleId": "R1",
      "sideEffect": "payment",
      "input": {
        "company": "string"
      },
      "href": "https://www.mokabla.com/agent/_call/buy_access?company=easygenerator",
      "ready": true,
      "missing": [],
      "humanPath": "https://www.mokabla.com/en/pricing"
    },
    {
      "name": "post_comment",
      "description": "Comment on a question.",
      "permission": "block",
      "reason": "This action is for people only",
      "ruleId": "R1",
      "sideEffect": "write",
      "input": {
        "question": "string",
        "text": "string"
      },
      "href": "https://www.mokabla.com/agent/_call/post_comment?question=authentication-and-authorization",
      "ready": false,
      "missing": [
        "text"
      ],
      "humanPath": "https://www.mokabla.com/en/companies"
    }
  ],
  "navigate": [
    {
      "label": "This question, as data (free questions only)",
      "href": "https://www.mokabla.com/agent/_call/get_question?company=easygenerator&question=authentication-and-authorization"
    },
    {
      "label": "All questions at this company",
      "href": "https://www.mokabla.com/agent/_call/list_questions?company=easygenerator"
    },
    {
      "label": "The company page",
      "href": "https://www.mokabla.com/agent/en/c/easygenerator"
    },
    {
      "label": "Authentication and Authorization · page",
      "href": "https://www.mokabla.com/agent/en/c/easygenerator/authentication-and-authorization"
    }
  ],
  "notices": [
    {
      "severity": "info",
      "message": "This classification is final for the session: it came from a strong signal, not a guess. The human pages are not served to agents."
    },
    {
      "severity": "info",
      "message": "Unverified agents are read-only. Signed requests (Web Bot Auth) are the path to write access."
    }
  ],
  "meta": {
    "requestId": "ag_d495917a68d6",
    "policyVersion": "mokabla-2026-11-03",
    "generatedAt": "2026-11-27T18:33:28.837Z",
    "jsonUrl": "https://www.mokabla.com/agent/en/c/easygenerator/authentication-and-authorization?format=json",
    "manifestUrl": "https://www.mokabla.com/.well-known/agentgate.json",
    "humanUrl": "https://www.mokabla.com/en/c/easygenerator/authentication-and-authorization",
    "humanClaimUrl": "https://www.mokabla.com/agent/_claim/human?to=%2Fen%2Fc%2Feasygenerator%2Fauthentication-and-authorization"
  }
}