Dave
Explore posts from serversKKinde
•Created by Dave on 4/22/2025 in #💻┃support
Multi-tenant (white-label app) design with subdomains
making progress but am still getting this error:- "Something went wrong when we tried to authenticate you, and we can’t offer a quick way out. Start a new session and try signing in again. Error code: 1656".
This happens on the redirect after select-org screen.
Callbacks:
KINDE_SITE_URL: http://localtest.me:3000
LOGIN URI: http://localtest.me:3000/login
REDIRECTS: http://localtest.me:3000/api/auth/kinde_callback , http://localtest.me:3000/api/auth/login-callback
.env:
KINDE_POST_LOGIN_REDIRECT_URL=http://localtest.me:3000/app
KINDE_POST_LOGOUT_REDIRECT_URL=http://localtest.me:3000
KINDE_DEBUG_MODE=true but nothing is logged.
Google auth redirect is http://localtest.me:3000/login/callback
Does protocol need to be HTTPS even though it resolves to 127.0.0.1?
At a loss. Everything looks correct. Thx.
6 replies
KKinde
•Created by Dave on 4/22/2025 in #💻┃support
Multi-tenant (white-label app) design with subdomains
I already do for users/organizations. But my application is also "multi-app", which is denoted by subdomains.
6 replies
KKinde
•Created by Dave on 4/18/2025 in #💻┃support
Can't find Workflows
Thank you, Ages. Another question regarding workflow deploymet and execution. In my workflow I need to access the database of my application (the same one I'm protecting with Kinde) to get data to put into the access token. I've been looking into various design options such as sharing the library package that does the database lookup in the workflow, but to me that potentially opens a security issue since there's no security layer.
One thought is to use an M2M API query to my app's API where I'm passing client credentials, and I'd use a scope to further restrict access. Now, the client credentials would be in a .env file. I was curious to understand how Kinde executes my workflow... if the .env will be read. What is the best practice for accessing proprietary back end data in the workflow?
12 replies
KKinde
•Created by Dave on 4/22/2025 in #💻┃support
Multi-tenant (white-label app) design with subdomains
I just discovered Google auth doesn't allow subdomains of localhost. That answers that question. But I'd appreciate feedback on whether wildcards can be used or I need a separate application for each "app" attached to a subdomain. Thx.
6 replies
KKinde
•Created by Dave on 4/18/2025 in #💻┃support
Can't find Workflows
Thank you Ages. The filename was actually correct. I'd made a typo in my post. The issue was in the json config. I think the documentation should be revised to make it clear that rootDir is relative to environment/workflows. Thx. Dave.
12 replies
KKinde
•Created by Dave on 4/18/2025 in #💻┃support
Can't find Workflows
Here's the repo:- https://github.com/davidcrouch/kinde_workflows
12 replies
KKinde
•Created by Dave on 4/18/2025 in #💻┃support
Can't find Workflows
I've read all those sections of the docs multiple times. I don't know what I'm missing. I've created a new repo and added the bare minimum. I don't get an error and I unfortunately cannot see sync logs now from the prior repo, but I don't see any workflows after connecting to the repo and syncing. The Status page says workflows are ok.
Here's my kinde.json:-
{
"rootDir":"environment/workflows"
}
Here's my environment/workflows/UserTokenWorklow.ts file:-
import {
accessTokenCustomClaims,
onUserTokenGeneratedEvent,
WorkflowSettings,
WorkflowTrigger,
} from "@kinde/infrastructure";
export const workflowSettings: WorkflowSettings = {
id: "userTokenGeneration",
name: "Access token custom claims",
failurePolicy: {
action: "stop",
},
trigger: WorkflowTrigger.UserTokenGeneration,
bindings: {
"kinde.idToken": {}, // required to modify ID token claims
"kinde.accessToken": {}, // required to modify access token claims
url: {}, // required for url params
},
};
export default async function handleUserTokens(event: onUserTokenGeneratedEvent) {
const accessToken = accessTokenCustomClaims<{
companyName: string;
}>();
accessToken.companyName = "Kinde";
};
12 replies
CComposioHQ
•Created by extended-salmon on 3/24/2025 in #🖥│support-forum
Some "Default Connectors" not found errors
Any update? Thx.
8 replies
CComposioHQ
•Created by deep-jade on 3/24/2025 in #🖥│support-forum
Some "Default Connectors" not found errors
Thank you @Abhishek, I did understand your message and I understand the concepts. The required parameter (API key) for Acculynx is marked as "expected_from_customer=true", which is why I didn't think it was needed at the time of creating the integration. I also did a test with Airtable and chose "API key" auth option i.e. same scenario. I was able to create the integration without any errors or requiring the API key, which is what I would expect. However, I get the error when creating the Acculynx integration, which only requires an API key to be supplied by the user (when creating the connection).
8 replies
CComposioHQ
•Created by adverse-sapphire on 3/24/2025 in #🖥│support-forum
Some "Default Connectors" not found errors
Hi @Abhishek , I didn't think API key was needed to create an integration, but was needed when making a connection because it is specific to a user? I'm getting the error when trying to create an integration.
Also, I note that in the Composio site, I can create an Acculynx integration without the API key, and it is only when I create the connection that I need to provide the API key. So, I'm a little confused.
8 replies
KKinde
•Created by Dave on 1/27/2025 in #💻┃support
Pass custom parameters through authUrlParams
Hi Ages
You said "If you've already set up the custom property and it's still returning null in the token, please ensure that the property is being correctly assigned during the authentication process.".
I've created a mz_application_id property in Settings. In the application I've customised the token and added the property as an "application" scoped type. I see mz_application_id passed in the token as null. If I go into the Kinde Manager Desktop and explicitly assign a value, it appears in the token.
The issue I'm having is the value passed in <LoginLink> is not mapping to the property but I don't see how to configure this any more than I have.
Thanks,
Dave
5 replies
KKinde
•Created by Dave on 8/26/2024 in #💻┃support
How to use Is_create_org in NextJs.
Hi Quacksire, I'm a little confused re. "the user needs to be logged in to create an org". If they are already logged in, then their account has been created from registration. But there's a configuration flag for organisations in the UI:-
"Add users to this organization if no organization is specified"
"Always add users to the default organization if no organization is selected or created when they register"
I'm assuming there is a parameter that can be passed when registering a user?
9 replies
KKinde
•Created by Kenton on 8/27/2024 in #💻┃support
Kinde Management API - 400 Bad Request: malformed Host header
Just found this re. refreshing token data:- https://discord.com/channels/1070212618549219328/1276004138785833052/1276004138785833052
15 replies
KKinde
•Created by Dave on 8/18/2024 in #💻┃support
Need advice on multi-tenant design
Thanks Oli for the info. The upcoming plans/subscriptions functionality is very important for me. If I relaxed the constraint to allow a separate Kinde Organisation for each company/app combo, would this work with the upcoming billing product?
I understand the core of the billing product uses features for creating plans. At what level are the plans created? Per organisation?
Having a Kinde business per company is also an option except I don't see a "create business" function in the API. It appears businesses can only be created in the UI, which would be a show stopper for this option. THx.
I understand the core of the billing product uses features for creating plans. At what level are the plans created? Per organisation?
Having a Kinde business per company is also an option except I don't see a "create business" function in the API. It appears businesses can only be created in the UI, which would be a show stopper for this option. THx.
9 replies
KKinde
•Created by Kenton on 8/27/2024 in #💻┃support
Kinde Management API - 400 Bad Request: malformed Host header
I'm following your conversations re. is_create_org. Would this be fixed with a token refresh?
Since moving the user to the new org is part of signup i.e they wouldn't have had to use the login page yet, I'm assuming a token refresh should hopefully be painless at signup??
Since moving the user to the new org is part of signup i.e they wouldn't have had to use the login page yet, I'm assuming a token refresh should hopefully be painless at signup??
15 replies
KKinde
•Created by Dave on 8/26/2024 in #💻┃support
How to use Is_create_org in NextJs.
I really like your idea, Kenton. Have you tried it yet?
9 replies
KKinde
•Created by Dave on 8/26/2024 in #💻┃support
How to use Is_create_org in NextJs.
So,
<LoginLink> = log in user,
<RegisterLink> = register new user,
<CreateOrgLink> = create a new organisation, yes??
In my ideal world. for new user registration there'd be an "organisation name" besides first/last name properties for user sign up, that when OK is clicked a new user is registered and a new organisation created for which the user is the first member. To do this It appears RegisterLink and CreateOrgLink are not helpful. Furthermore, to implement this I'd need to choose to create my own custom register and login pages, which is unfortunate since I'm perfectly happy with the pre-packaged login page. Am I missing anything??? I'm using NextJs. App Router. When implementing my own Register page, I will be creating an organisation and then add a user to that organisation. I don't see much in the NextJs docs for doing this. To keep with the flavour of NextJS, I'd like to create a server action to create an organisation and signup a user. Are there any hooks for doing this or is Kinde Management API the only way? THanks, Dave
In my ideal world. for new user registration there'd be an "organisation name" besides first/last name properties for user sign up, that when OK is clicked a new user is registered and a new organisation created for which the user is the first member. To do this It appears RegisterLink and CreateOrgLink are not helpful. Furthermore, to implement this I'd need to choose to create my own custom register and login pages, which is unfortunate since I'm perfectly happy with the pre-packaged login page. Am I missing anything??? I'm using NextJs. App Router. When implementing my own Register page, I will be creating an organisation and then add a user to that organisation. I don't see much in the NextJs docs for doing this. To keep with the flavour of NextJS, I'd like to create a server action to create an organisation and signup a user. Are there any hooks for doing this or is Kinde Management API the only way? THanks, Dave
9 replies
KKinde
•Created by Dave on 8/26/2024 in #💻┃support
How to use Is_create_org in NextJs.
Thank you Quacksire for the info but is CreateOrgLink the same as is_create_org? I'd like to understand how is_create_org supposed to be used. Thx.
9 replies
KKinde
•Created by Dave on 8/18/2024 in #💻┃support
Need advice on multi-tenant design
Thank you for the info, Oli. I'd like to avoid having separate silos of users for the same company if possible. It's hard to guess how plans and subscriptions will work, but I was assuming I'd implement organisations and then, for example, when company B subscribes to a 5-user license for app1 from company A, I'd programmatically set an integer feature flag of 5 for app1 users for that organisation and then monitor how many users logged in. I was basically assigning the organisation concept to a physical company with it's users being their team of employees, consultants etc. Then for apps, I was thinking of feature flags for controlling access to functionality. Is this a logical way of doing it and does it make sense given the upcoming plans/subscriptions functionality?? Also, if a feature is enabled for an organisation, can I use roles and permission to control a user's access to that feature? Thx.
9 replies