Replies: 8 comments 19 replies
-
I just saw this project while thinking about including "better ASP.NET Core authorization" in a new project. |
Beta Was this translation helpful? Give feedback.
-
Hi, Thank you |
Beta Was this translation helpful? Give feedback.
-
Have you put any thought into supporting users with multiple roles? I've read the article series but haven't looked at the example app, so I don't know if it's already there. (Sorry) Use case: Imagine an inventory system targeted to small businesses. You'd probably have a role specific to filling orders (and, thus, decrementing your warehouse inventory) and a different role specific to restocking (incrementing) your warehouse inventory. If you only have a handful of employees, then the person doing the restocking will also probably be filling orders. Conceptually, people often wear multiple hats... have multiple roles. (I'm both a "developer" as well as "technical support".) I could have a single role that includes the permissions for both "hats", but I feel it's a better interpretation of the analogy to assign multiple "hats", multiple roles, to a single person. |
Beta Was this translation helpful? Give feedback.
-
Hello, I like the AuthP library, but I miss the support of PostreSQL. Is it possible or planned extra feature to the next release? |
Beta Was this translation helpful? Give feedback.
-
Hi @JonPSmith I love this library very much. It's got a lot of things I've wanted in a multi-tenant application/ library. I would like to contribute to it, especially with enabling users to manage multiple the tenants. It seems you had some ideas already. How do you propose we communicate and so I can help? |
Beta Was this translation helpful? Give feedback.
-
Hello Jon, |
Beta Was this translation helpful? Give feedback.
-
I like this approach very much indeed. Did my own implementation for ongoing app development using ASP identity but your ideas are much better formed than mine so I'm switching to your plan. Some thoughts on Tenant Creation...
Hope that makes sense. |
Beta Was this translation helpful? Give feedback.
-
Is there way we can have sub domain once the tenant is logged in? just like how we have navbar brand change to tenant name based on the login? |
Beta Was this translation helpful? Give feedback.
-
The AuthPermissions.AspNetCore library (shortened to AuthP) started with version 1.0.0, but many features have been added. This discussion is to get feedback on this library and what new features people would like.
REMEMBER: This is an open-source library which I work on in my "spare time", so don't expect me to produce new features quickly.
Version 9.0.0
Updates AuthP to .NET 9.
BREAKING CHANGE: EF Core 9 has added code to ensure that migrations are executed correctly - see EF Core 9's updated migrations. If you have build an multi-tenant application then you need to read the UpdateToVersion9 on how to update your app.
Version 8.0.0
Simplified to one NET type, in this case .NET 8. The changed makes it easier to update for future NET releases. See the "How to update a NuGet library once the author isn’t available" article for more information.
Version 6.2.1
Updated Net.RunMethodsSequentially to fix .NET 8 Postgres bug in the DistributedLock. See this section in the documentation about this feature.
Version 6.2.0
A small change to the Sign up for a new tenant, with versioning feature to handle fatal code problems, e.g.
Exception
s.This was because @akema-trebla had problems with errors (see issue #97). Once I got into I decided to redesign the code in the
SignInAndCreateTenant
service.Version 6.1.0
Version 6.0.0
See new Example7 app that provides an example of a multi-tenant application where every tenant has its own database. See the Sharding explained document about the new modes.
Version 5.0.0
SetupMultiTenantSharding
that sets up the sharding / hybrid multi-tenant feature. This makes it easier to set up this feature.SetupMultiTenantSharding
extension method with your changes.Version 4.1.0
See Languages & cultures explained document to see what this new service provides.
Version 4.0.0
DataKey
of length of 250.Version 3.5.0
Small changes, some of which break existing projects but with very simple rename will fix it. Here is the changes
MarkJwtRefreshTokenAsUsedAsync(string userId)
toLogoutUserViaRefreshTokenAsync(string refreshToken)
. See thelogout
Web API in the AuthenticateController.LogoutUserViaUserIdAsync(string userId)
that makes all the refresh token as invalid, so all logins for the user with the given userId will timeout.TenantChangeCookieEvent
toSomethingChangedCookieEvent
It also updates the Net.DistributedFileStoreCache to version 1.1.0, which is used in AuthP's Example2 (Web API app) to allow the claims in JWT Token to be changed. See articleASP.NET Core: Three ways to refresh the claims of a logged-in user for how this works (examples in the version 3.5.0 code).
Version 3.4.0
This contains one significant new feature and quite a few changes. The most important changes are:
New "down for maintenance" feature
This provides a multi-tenant app stop users accessing a tenant while its data is being changed, moved, e.g. moving a tenant's data from a shared database to its own database (sharding). This stops tenant data from being corrupted by a user while the move / change is running.
See the "Down for maintenance" feature documentation for more information.
Added timeout on user invitation
@idan-h said that the Invite new user feature should have a timeout on the invite sent to a person. This was added in this version and the Invite new user service documentation has been updated to show this.
Breaking change to the refresh users claims feature
The refresh users claims feature now uses the FileStore distributed database for better performance. The the updated Update claims on tenant change documentation shows how to add the FileStore distributed database feature.
Other changes
There are seven other changes in version 3.4.0 - see the ReleaseNotes for information on these changes.
Version 3.3.0
The main parts of version 3.3.0 is to create a generic version of the “invite a user” feature and the “sign up / versioning” features. This also requires two other supporting services:
This release also contains some bug fix #35 and improvement #39,
Version 3.2.0
A study of the version 3.0.0's sharding feature showed that it would very hard to manage multiple databases in production. This version solves this problem by using the
appsettings
file's "ConnectionStrings" section to define the database servers and provides a newsharingssettings.json
file to manage the databases - see issue #29 for an overview of what is changed. New documentarian are:Other changes are:
UpdateUserAsync
now allows you to select which properties you want to update - see docs: Admin -> AuthUser admin.and
RemoveRoleToUseras the change to the
UpdateUserAsync` covers this.Version 3.1.0
Version 3.0.0
BREAKING CHANGES - see this file for what you have to change
Limitations of these release
Possible extra features in next release, or future releases
OLD VERSIONS
Version 2.3.1
RoleType
- see issue Multi-tenant Roles: Problem when changing a Roles RoleType or when deleting #13Version 2.2.0
New Feature: Added "Access the data of other tenant" feature - see issue #10
Version 2.1.0
This tidies up a few small issues found when writing the "Building ASP.NET Core and EF Core multi-tenant apps"articles. See ReleaseNotes for more info.
Version 2.0.0
First release of version 2 release of AuthPermissions. This was released early because I found a critical bug fix for hierarchical multi-tenant usage. See Migrate from AuthPermissions.AspNetCore 1.* to 2.0 for detailed information on how to upgrade to this version.
Summary of new features
Version 1.x.x
First release of the AuthPermissions.AspNetCore library, including three example applications.
Summary of main features
Limitations of this release
Beta Was this translation helpful? Give feedback.
All reactions