Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Finbuckle/Finbuckle.MultiTenant
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.0.0
Choose a base ref
...
head repository: Finbuckle/Finbuckle.MultiTenant
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.0.0
Choose a head ref
  • 11 commits
  • 263 files changed
  • 1 contributor

Commits on Oct 4, 2019

  1. Configuration menu
    Copy the full SHA
    a19ba05 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2019

  1. Chore/improve samples and tests (#183)

    -Updated most samples for AspNetCore3.
    -Improved service replacement via `DecorateService` extension on `IServiceCollection`.
    - Working version of some functionality (eg ambient link generator)
    AndrewTriesToCode authored Oct 10, 2019
    Configuration menu
    Copy the full SHA
    b5b08d1 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2019

  1. fix: MultiTenantIdentity default identity and role code

    Fixed but described in #189.
    
    Also added some code around MultiTenantIdentityUser and MultiTenantIdentityRole to mirror Identity's IdentityUser and IdentityRole default entities.
    
    Fixes #189
    AndrewTriesToCode authored Oct 11, 2019
    Configuration menu
    Copy the full SHA
    10ffbe3 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2019

  1. Feat/184 set multitenant onmodelcreating (#191)

    - Refactored multi tenant behavior into extension classes
      - No longer need to derive from `MultiTenantDbContext` or `MultiTenantIdentityDbContext` (although it is supported)
      - Added `EntityModelBuilder.IsMultiTenant()` extension method that can be used in OnModelCreating to set multitenant behavior at run time in `OnConfiguring(...)`.
      - Types with [MultiTenant] get work similarly by calling `ModelBuilder.ConfigureMultiTenant()` in `OnConfiguring(...)`.
      - `DbContext.EnforceMultiTenant` can be called before `SaveChanges(...)` or `SaveChangesAsync(...)` to actually apply multitenant logic.
    
    - MultiTenantIdentityDbContext now applies IsMultiTenant() to each of the standard Identity types.
      - MultiTenantIdentityUser and similar all marked obsolete.
    
    - Added unit test for an entity using the extension method
    
    - Updated IdentityDataIsolationSample for netcoreapp2.2 and netcoreapp3.0
    
    - Updated DataIsolationSample for netcoreapp3.0
    
    - Updated documentation.
    
    Closes #184
    AndrewTriesToCode authored Nov 8, 2019
    Configuration menu
    Copy the full SHA
    e8f37bb View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2020

  1. feat: configuration store

    - Adds a new store that uses the app's configuration as the backing store.
    - Deprecates InMemoryStore configuration functionality.
    AndrewTriesToCode authored Jan 5, 2020
    Configuration menu
    Copy the full SHA
    fb4c71d View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2020

  1. Configuration menu
    Copy the full SHA
    a5ccdc0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    87b78f6 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2020

  1. Configuration menu
    Copy the full SHA
    76f8f9c View commit details
    Browse the repository at this point in the history
  2. chore: update for 3.1 and end of 2.2

    - Updated all libraries, tests, and samples for netcoreapp3.1
    - Removed netcoreapp2.2 from everything, changed samples to netcoreapp2.1
    AndrewTriesToCode authored Jan 10, 2020
    Configuration menu
    Copy the full SHA
    a4cea0c View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2020

  1. Configuration menu
    Copy the full SHA
    b45d69f View commit details
    Browse the repository at this point in the history
  2. release: v5.0.0

    **5.0.0**
    * Added support for ASP.NET Core 3.1.
    * Major refactor of how Entity Framework multitenant data isolation works. No longer need to derive from `MultiTenantDbContext` greatly improving flexibility. `IdentityMultiTenantDbContext` reworked under this new model and no longer requires or recommends use of multitenant support classes, e.g. `MultiTenantIdentityUser`. Attempted to minimize impact, but if using `IdentityMultiTenantDbContext` **this may be a breaking change!** Thanks **@GordonBlahut**!
    * Simplified `EFCoreStore` to use `TenantInfo` directly. **This is a breaking change!**
    * Fixed a bug with user id not being set correctly in legacy 'IdentityMultiTenantDbContext'.
    * Added `ConfigurationStore` to load tenant information from app configuration. The store is read-only in code, but changes in configuration (e.g. appsettings.json) are picked up at runtime. Updated most sample projects to use this store.
    * Deprecated `InMemoryStore` functionality that reads from configuration.
    * Added `HttpRemoteStore` which will make an http request to get a `TenantInfo` object. It can be extended with `DelegatingHandler`s (i.e. to add authentication headers). Added sample projects for this store. Thanks to **@colindekker**!
    * Fixed an exception with OpenIdConnect remote authentication if "state" is not returned from the identity provider. The new behavior will result in no tenant found for the request.
    * Updated samples.
    * Updated documentation.
    * Updated unit tests.
    AndrewTriesToCode authored Jan 12, 2020
    Configuration menu
    Copy the full SHA
    decda4b View commit details
    Browse the repository at this point in the history
Loading