Open goforebroke opened 1 year ago
Hi there, glad you got it working and sorry for the slow reply. Nice to hear from you!
@goforebroke did you get this rolling? i am removing base path strategy while i'm updating identity server to use razor pages instead of controllers.
its like you have to get the acr tenant then add it to a temporary claim almost immediately so that it tracks through the rest of the flow? i am not always able to get the acr values tenant because that query string with returnUrl doesn't always have it.
@natelaff sorry I have taken so long to get back to you. I have been super busy with my regular job outside of this personal project.
I have two Identity server clients, both razor applications. One client uses a static strategy (default tenant) and the other uses a base path strategy . The second client has an area where a user "sets" their tenant. My identity server is also configured to use a base path strategy. I don't pass the tenant acr value through from the clients to Identity Server. The tenant is always passed in the URL as part of the authorization/authentication request. In addition, I use a custom RedirectUriValidator in Identity server to ensure that the registered "RedirectUris" for the identity clients validate. I probably have not got far enough into my project to encounter real problems. Is there something in my setup that you would like to see?
Andrew,
I have read several of the issues regarding Duende Identity Server 6 and Finbuckle. In most of the issues, you recommend using the base path strategy (Use of claim strategy and Identity types #613). I have tried to set this up, but I keep getting a 404 error when navigating to the login page with the tenant identifier.
Here is how things are setup in with Identity server.
IdentityServer configuration below. For now I am using in memory clients, scopes and resources for development purposes
EFCoreStore below
Below is how the pipline is set up
Below are my two EF DB Contexts. One for Identity and the other for the EFCore Store
Identity...
Store..
When I navigate to https://localhost:5001/Goforebroke/Account/Login, I get a 404 error.
My serilog log shows that Finbuckle discovers the tenant, but the URL is not found.
Have set things up in the correct order, or am I missing something my setup?