jamie
KKinde
•Created by Ollie Mansell on 4/5/2024 in #💻┃support
adding a loading state to the SignIn component in NextJS
Just guessing here and I'm not affiliated with Kinde in any way (other than using it myself). But if it's possible to iframe the sign-in page, you could potentially redirect to the page after it has loaded into the browser somehow.
Alternatively I think they provide the option to build a custom sign in page, then you could have it however you like 🙂
EDIT: I accidentally said "Just guessing here and I'm affiliated with Kinde in any way", to clarify completely, that was a typo. I meant "Just guessing here and I'm not affiliated with Kinde in any way".
15 replies
KKinde
•Created by jamie on 3/29/2024 in #💻┃support
Unable to make a POST request to retrieve a token with `grant_type` of `authorization_code`
That screenshot is from here "Using Kinde without an SDK - Handling the callback": https://kinde.com/docs/developer-tools/using-kinde-without-an-sdk/#handling-the-callback
37 replies
KKinde
•Created by jamie on 3/29/2024 in #💻┃support
Unable to make a POST request to retrieve a token with `grant_type` of `authorization_code`
even if it was just on another tab in that code block, it would've saved me over a day on setup
37 replies
KKinde
•Created by jamie on 3/29/2024 in #💻┃support
Unable to make a POST request to retrieve a token with `grant_type` of `authorization_code`
Maybe you could just shorten it to this:
37 replies
KKinde
•Created by jamie on 3/29/2024 in #💻┃support
Unable to make a POST request to retrieve a token with `grant_type` of `authorization_code`
37 replies
KKinde
•Created by jamie on 3/29/2024 in #💻┃support
Unable to make a POST request to retrieve a token with `grant_type` of `authorization_code`
I'll have a go
37 replies
KKinde
•Created by jamie on 3/29/2024 in #💻┃support
Unable to make a POST request to retrieve a token with `grant_type` of `authorization_code`
Maybe it would be worth looking at what a curl command for that might look like?
37 replies
KKinde
•Created by jamie on 3/29/2024 in #💻┃support
Unable to make a POST request to retrieve a token with `grant_type` of `authorization_code`
37 replies
KKinde
•Created by jamie on 3/29/2024 in #💻┃support
Unable to make a POST request to retrieve a token with `grant_type` of `authorization_code`
@ev_kinde Specifically I'd like to contribute to anything that goes towards fully implementing Kinde's API as a golang SDK. Ideally I'd like to try to abstract some of the functionality to make it more like idiomatic Go, and eventually hook into that abstraction when exposing webhooks (I realise this is a beta feature, but when released it would be nice to take advantage of them in the same lib).
We're using it in our Go API so I've already implemented the very basics, but moving forward we want much more complete integration with Kinde.
37 replies
KKinde
•Created by jamie on 3/29/2024 in #💻┃support
Unable to make a POST request to retrieve a token with `grant_type` of `authorization_code`
Yes I saw, let me know if I can help at all
37 replies
KKinde
•Created by jamie on 3/29/2024 in #💻┃support
Unable to make a POST request to retrieve a token with `grant_type` of `authorization_code`
One of the main technical differences between them is the article specified uses client_credentials, whereas the quick start recommends using authorization_code.
The implementation on the article relies quite heavily on client_credentials and so didn't seem helpful at the time.
37 replies
KKinde
•Created by jamie on 3/29/2024 in #💻┃support
Unable to make a POST request to retrieve a token with `grant_type` of `authorization_code`
@Andre @ Kinde I came across this article really early on actually.
This article does provide useful insights into how to connect to Kinde via an M2M app, but didn't help me to understand how I can retrieve an access token for a specific user.
Having implemented both now, I may see if I can borrow ideas from this article to produce a small Go library for this.
37 replies
KKinde
•Created by jamie on 3/29/2024 in #💻┃support
Unable to make a POST request to retrieve a token with `grant_type` of `authorization_code`
Full example for anyone that finds this thread:
37 replies
KKinde
•Created by jamie on 3/29/2024 in #💻┃support
Unable to make a POST request to retrieve a token with `grant_type` of `authorization_code`
Okay I've figured it out. Turns out URL query params are not sufficient to pass the data effectively to Kinde.
Instead the params need to be sent as form data. In Go, this looks like:
37 replies
KKinde
•Created by jamie on 3/29/2024 in #💻┃support
Unable to make a POST request to retrieve a token with `grant_type` of `authorization_code`
Okay, I've finally managed to get a token response in JS, just need to figure out what it's doing differently, thanks @VKinde
I'll update this thread if I figure it out
37 replies
KKinde
•Created by jamie on 3/29/2024 in #💻┃support
Unable to make a POST request to retrieve a token with `grant_type` of `authorization_code`
37 replies
KKinde
•Created by jamie on 3/29/2024 in #💻┃support
Unable to make a POST request to retrieve a token with `grant_type` of `authorization_code`
Ah okay, so I tried with the node example, I'm getting an error message now
37 replies
KKinde
•Created by jamie on 3/29/2024 in #💻┃support
Unable to make a POST request to retrieve a token with `grant_type` of `authorization_code`
FYI: The app I'm using is of type "Back-end web"
37 replies
KKinde
•Created by jamie on 3/29/2024 in #💻┃support
Unable to make a POST request to retrieve a token with `grant_type` of `authorization_code`
Here is the verbose curl output:
37 replies
KKinde
•Created by jamie on 3/29/2024 in #💻┃support
Unable to make a POST request to retrieve a token with `grant_type` of `authorization_code`
I can't help but feel like I'm doing something stupid since I get no response body from the 400 res
37 replies