Skip to content

Multi-tenancy support #123

Answered by fmattioli
fmattioli asked this question in Q&A
Jun 26, 2024 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

I will share the code, maybe somethings does not make sense, but in my case it solve my problem:
Basically, I did an extension of a ServiceCollection, I keep using methods from your library but I did some changes to add support to multi tenancy.

Service extension:

using Contracts.Web.Services.Auth;
using Keycloak.AuthServices.Authentication;
using Keycloak.AuthServices.Authorization;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.IdentityModel.Tokens;
using System.IdentityModel.Tokens.Jwt;

namespace Contracts.Web.ServiceCollectionExtensions.KeycloakAuth
{
    public static class Keyclo…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@fmattioli
Comment options

Answer selected by NikiforovAll
@NikiforovAll
Comment options

Comment options

You must be logged in to vote
1 reply
@NikiforovAll
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants