MaxRebo
KKinde
•Created by Daniel on 2/6/2025 in #💻┃support
Kinde & .NET Blazor Server?
it sounds like the claims are not being mapped. As a quick test, I would try setting MapInboundClaims = true directly in your c# rather than relying on config
47 replies
KKinde
•Created by Daniel on 2/6/2025 in #💻┃support
Kinde & .NET Blazor Server?
as in you have 10 claims inthe Principal.Claims collection?
47 replies
KKinde
•Created by Daniel on 2/6/2025 in #💻┃support
Kinde & .NET Blazor Server?
.AddOpenIdConnect(OIDC_SCHEME, oidcOptions =>
{
...
oidcOptions.MapInboundClaims = true;
47 replies
KKinde
•Created by Daniel on 2/6/2025 in #💻┃support
Kinde & .NET Blazor Server?
have you set MapInboundClaims = true?
47 replies
KKinde
•Created by Daniel on 2/6/2025 in #💻┃support
Kinde & .NET Blazor Server?
Let me check my config...
47 replies
KKinde
•Created by Daniel on 2/6/2025 in #💻┃support
Kinde & .NET Blazor Server?
I haven't seen that happen, but it sounds like the relevant claim is not mapping to the Identity.Name.
47 replies
KKinde
•Created by Daniel on 2/6/2025 in #💻┃support
Kinde & .NET Blazor Server?
alternatively, antiforgery tokens should be added to your blazor form automatically. I wonder if adding your own <AntiforgeryToken /> is causing an issue.
47 replies
KKinde
•Created by Daniel on 2/6/2025 in #💻┃support
Kinde & .NET Blazor Server?
you'll also need to change the group.MapPost() to be group.MatGet()
47 replies
KKinde
•Created by Daniel on 2/6/2025 in #💻┃support
Kinde & .NET Blazor Server?
or change the form method to method="get" if you really need to use a form.
47 replies
KKinde
•Created by Daniel on 2/6/2025 in #💻┃support
Kinde & .NET Blazor Server?
ah you are posting to the endpoint. try created an <a> tag for your logout endpoint, so that it does a GET request.
47 replies
KKinde
•Created by Daniel on 2/6/2025 in #💻┃support
Kinde & .NET Blazor Server?
Antiforgery exception is curious. as it's handled automatically by .Net now and shoudn't be involved in a GET request regardless.
How are you calling the logout endpoint?
47 replies
KKinde
•Created by Daniel on 2/6/2025 in #💻┃support
Kinde & .NET Blazor Server?
yes, I tried Logto also, as they offered Australian hosting which was a requirement for us. I backed away from them once I found out what country they are based in as it would not have been acceptable to our customers.
47 replies
KKinde
•Created by Daniel on 2/6/2025 in #💻┃support
Kinde & .NET Blazor Server?
@Daniel
I have been using Kinde with Blazor for some time, and can confirm it is definitely supported. The state parameter will be automatically set when you use AddOpenIdConnect(), which I can see you have configured.
It sounds like you are hitting the signin-oidc endpoint directly, hence the state is empty. If you haven't already, you need to wire up your own login/logout endpoints that you hit. The Blazor sample apps have the relevant code you can use: https://github.com/dotnet/blazor-samples/blob/main/9.0/BlazorWebAppOidcServer/LoginLogoutEndpointRouteBuilderExtensions.cs
47 replies
KKinde
•Created by MaxRebo on 7/10/2024 in #💻┃support
Redirect Urls for multi tenant application
We will start users on a subdomain, with the option to brand with their own custom domain.
The other option I am exploring is to proxy all auth requests via a single endpoint, and add a callbackUrl in Kinde to that single proxy address. That endpoint would then be responsible for redirecting to the correct url based on the tenantId we store against the org in Kinde. Do you foresee any challenges in going down this path?
4 replies
KKinde
•Created by MaxRebo on 7/10/2024 in #💻┃support
Redirect Urls for multi tenant application
following on from this, is there a limitation to the number of callback urls we add?
For example, if we added a callback url per tenant, and we have 1000 tenants, is this supported?
4 replies