---
title: "Discussion on \"Role-based Authentication Design for APIs:\" | Hashnode"
description: "Discussion on \"Role-based Authentication Design for APIs:\". We want to protect the APIs at a more granular level, As shown below:\n\nHere, We design that the list products API is accessible to only users having the role Customer or Editor, and the add product API requires authority Editor, Whereas the login API..."
url: "https://hashnode.com/posts/role-based-authentication-design-for-apis/6578b454056877321c805af9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Role-based Authentication Design for APIs:](https://destop.hashnode.dev/role-based-authentication-design-for-apis?utm_source=hashnode&utm_medium=feed)

We want to protect the APIs at a more granular level, As shown below: Here, We design that the list products API is accessible to only users having the role Customer or Editor, and the add product API requires authority Editor, Whereas the login API...

Dec 12, 2023 · 4 min read · destop.hashnode.dev  
Read the article

## Written by

[Nagendra Gt](https://hashnode.com/@nagendra437)

@nagendra437 · Bangalore

  
[View profile](https://hashnode.com/@nagendra437)

Software developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
