Feijuca.Keycloak.MultiTenancy
1.0.0
This package is an old version and it is no longer maintained.
Please, use the package Feijuca.Auth.
See the version list below for details.
dotnet add package Feijuca.Keycloak.MultiTenancy --version 1.0.0
NuGet\Install-Package Feijuca.Keycloak.MultiTenancy -Version 1.0.0
<PackageReference Include="Feijuca.Keycloak.MultiTenancy" Version="1.0.0" />
paket add Feijuca.Keycloak.MultiTenancy --version 1.0.0
#r "nuget: Feijuca.Keycloak.MultiTenancy, 1.0.0"
// Install Feijuca.Keycloak.MultiTenancy as a Cake Addin #addin nuget:?package=Feijuca.Keycloak.MultiTenancy&version=1.0.0 // Install Feijuca.Keycloak.MultiTenancy as a Cake Tool #tool nuget:?package=Feijuca.Keycloak.MultiTenancy&version=1.0.0
<a id="readme-top"></a>
About The Project
This project has a quickly purpose: Extend the behavior of keycloak-authorization-services-dotnet but adding a multi-tenancy support. Maybe you are asking yourself, what is feijuca? Well... Feijuca is a nickname for a famous Brazilian dish called Feijoada. I wanted to use a name representing my country on this project and Feijuca was chosen.
Motivation
Keycloak may not be the best solution to work with multi-tenancy authentication, but we have the possibility of achieving this using the multi-realm context, basically we can have multi-realms within a keycloak instance and you can treat each realm as a tenant within your application. Therefore, this project aims to provide a model where this objective can be achieved. 😄
Built With
<img src="https://img.shields.io/badge/dotnet8-blue" />
Prerequisites
This project was made with the purpose to attend only applications that follows the current .Net Supported versions.
Getting Started
Well, as explained previously, this project is just a quicky extension to add multi tenancy support following everything that is done in the keycloak-authorization-services-dotnet. So as a first step you should make the settings according to what is described in the documentation for this project and first of all understand what was written on the documentation.
Installation
Below is an example of how you can configure your application to accomplish the goal to use multi tenancy besed on keycloak realms
- Get a free API Key at https://example.com
- Clone the repo
git clone https://github.com/your_username_/Project-Name.git
- Install NPM packages
npm install
- Enter your API in
config.js
const API_KEY = 'ENTER YOUR API';
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE.txt
for more information.
Contact
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Keycloak.AuthServices.Authentication (>= 2.5.2)
- Keycloak.AuthServices.Authorization (>= 2.5.2)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.6)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.1)
- System.IdentityModel.Tokens.Jwt (>= 7.6.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.