InWebAPI the [Authorize] attribute is used to limit access to controllers or certain actions depending on the user’s authentication levels. It makes sure that initiated and/or approved clients are only drawn to specific interfaces or terminus of the API.
How It Works
Authentication: [Authorize] attribute is responsible for examining if the request has been made by an authenticated user. Authentications guarantees that the user is indeed whom they claim to be (for instance by tokens, cookies or credentials).
Authorization: After confirming the identity the attribute checks whether the user has the appropriate privileges or roles to use the resource. For example, it can limit users with certain roles like “Admin,” or “Manager.”
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
In Web API the [Authorize] attribute is used to limit access to controllers or certain actions depending on the user’s authentication levels. It makes sure that initiated and/or approved clients are only drawn to specific interfaces or terminus of the API.
How It Works
Authentication: [Authorize] attribute is responsible for examining if the request has been made by an authenticated user. Authentications guarantees that the user is indeed whom they claim to be (for instance by tokens, cookies or credentials).
Authorization: After confirming the identity the attribute checks whether the user has the appropriate privileges or roles to use the resource. For example, it can limit users with certain roles like “Admin,” or “Manager.”