abpframework / abpframework/abp

Add ApplicationName to roles

Open
#2,515 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

abp-module-identity priority:high
Dominant language
C#
Stars
14.4k
Forks
3.7k
Avg merge
15h 32m
Merged PRs (30d)
106

Description

Assume that a single database is shared between multiple applications. In such a case, every application may want to see & manage its own roles.

An application can set a global option (like AbpIdentityOptions.ApplicationName) and the Identity module filters data based on it and ensures that only this application related roles are managed.
If it is not set by the applcation, all roles are managed.

Maybe this is not a unique problem to Roles. We should think about it while implementing.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the Identity module's role management and the AbpIdentityOptions.ApplicationName option. Determine how a shared database should filter and manage application-specific roles, and consider whether the same isolation is needed for other Identity data. Done means roles are scoped when the option is set while all roles remain manageable when it is unset.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
authorization, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.