Eranga
Eranga
KKinde
Created by Eranga on 11/30/2023 in #💻┃support
Trouble handling callback from SSO always returns 400
Oh, and one other thing. I noticed that if I add "Microsoft AD" as an Enterprise Identity provider and if I am already logged in, I don't get a chance to select which account I need to log in from. I could have more than one Microsoft accounts. This could also be me being a novice to this IAM domain. So if this is already handled, just forget about this.
21 replies
KKinde
Created by Eranga on 11/30/2023 in #💻┃support
Trouble handling callback from SSO always returns 400
Again, I am very happy with the support you provided throught my development. Good luck 🤞
21 replies
KKinde
Created by Eranga on 11/30/2023 in #💻┃support
Trouble handling callback from SSO always returns 400
Not related to your docs, but as a feature request I believe it will be very nice if we can integrate the SSO in our own UI without redirecting to your UI (I know you guys have already thought about it and working on it). This was discussed in our hackathon and came as a feedback for me. The main reason was that we don't have control over what we can show in that UI. Another thing that was discussed is the recent incident with Okta (another player in Auth0 - you probably know them 😉 ) where it got hacked and customer information was leaked. So, our company is very cautious about using 3rd party providers when it comes to user data. This is something I believe every company guarantees to its customers but there is going to be unfortunate events like that happening everyday. I think you have this on your website but almost at the end of your site. Since you are all about authentication and authorisation which is about securing stuff, you might want to rank the security of the system a bit higher.
21 replies
KKinde
Created by Eranga on 11/30/2023 in #💻┃support
Trouble handling callback from SSO always returns 400
I would recommend adding proper API request documentation there so there is no ambiguity there
21 replies
KKinde
Created by Eranga on 11/30/2023 in #💻┃support
Trouble handling callback from SSO always returns 400
So to answer your 2nd question, I believe I was a bit mislead by https://kinde.com/docs/developer-tools/using-kinde-without-an-sdk/#handling-the-callback request description. Maybe it is me, but I felt like I should have made a POST request with every parameter set as query parameters.
21 replies
KKinde
Created by Eranga on 11/30/2023 in #💻┃support
Trouble handling callback from SSO always returns 400
I guess you guys are doing a great job in terms of making SSO pretty smooth for developers like us
21 replies
KKinde
Created by Eranga on 11/30/2023 in #💻┃support
Trouble handling callback from SSO always returns 400
To be honest, I was in a hurry to implement SSO using Kinde because I did it for a hackathon in my company. So I had like 1 day for doing everything.
21 replies
KKinde
Created by Eranga on 11/30/2023 in #💻┃support
Trouble handling callback from SSO always returns 400
@Andre @ Kinde Sorry for the late reply. I had other errors but they were actually issues on my end since this was my first time trying out SSO.
21 replies
KKinde
Created by Eranga on 11/30/2023 in #💻┃support
Trouble handling callback from SSO always returns 400
@Andre @ Kinde Thanks, now it works
21 replies
KKinde
Created by Eranga on 11/30/2023 in #💻┃support
Trouble handling callback from SSO always returns 400
😄
21 replies
KKinde
Created by Eranga on 11/30/2023 in #💻┃support
Trouble handling callback from SSO always returns 400
My bad, I didn't send it as a form. Not I am getting some meaningful errors
21 replies
KKinde
Created by Eranga on 11/30/2023 in #💻┃support
Trouble handling callback from SSO always returns 400
Can I also know if I send an invalid code_verifier value, will it still throw me 400 status code?
21 replies
KKinde
Created by Eranga on 11/30/2023 in #💻┃support
Trouble handling callback from SSO always returns 400
But I am sending the grant_type
21 replies
KKinde
Created by Eranga on 11/30/2023 in #💻┃support
Trouble handling callback from SSO always returns 400
Now it says me: {"error":"invalid_request","error_description":"The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Request parameter 'grant_type' is missing"}
21 replies
KKinde
Created by Eranga on 11/30/2023 in #💻┃support
Trouble handling callback from SSO always returns 400
This is the cURL request for the same as you suggested
curl --location 'https://novade.kinde.com/oauth2/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data '{
"grant_type": "authorization_code",
"client_id": "279d4ec6490d402b817c4d7aec122373",
"redirect_uri":"https://lite-staging.novade.net/login-sso",
"code":"XKRMtXK-SM4SorkGIZ2pJqycIXmY_EJfuEjk18yXBgU.jvdQuoUBYfJVk7Bm2JfW3S2KRu408iIlWzD2DrCBLLE",
"code_verifier":"code_verifier"
}'
curl --location 'https://novade.kinde.com/oauth2/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data '{
"grant_type": "authorization_code",
"client_id": "279d4ec6490d402b817c4d7aec122373",
"redirect_uri":"https://lite-staging.novade.net/login-sso",
"code":"XKRMtXK-SM4SorkGIZ2pJqycIXmY_EJfuEjk18yXBgU.jvdQuoUBYfJVk7Bm2JfW3S2KRu408iIlWzD2DrCBLLE",
"code_verifier":"code_verifier"
}'
21 replies
KKinde
Created by Eranga on 11/30/2023 in #💻┃support
Trouble handling callback from SSO always returns 400
Let me try this quick
21 replies
KKinde
Created by Eranga on 11/30/2023 in #💻┃support
Trouble handling callback from SSO always returns 400
Ah, I see. In your doc it rather seemed like a single URL
21 replies
KKinde
Created by Eranga on 11/30/2023 in #💻┃support
kinde_flutter_sdk not being recognised
For now, I will continue doing things manually
14 replies
KKinde
Created by Eranga on 11/30/2023 in #💻┃support
kinde_flutter_sdk not being recognised
I tried adding a new package (cryptography) that I never used to my project and ran few commands within it. It works fine for me. I'm not sure why this issue only happens with kinde_flutter_sdk
14 replies
KKinde
Created by Eranga on 11/30/2023 in #💻┃support
kinde_flutter_sdk not being recognised
Let me try with an entirely different pub from some other place and check I can execute commands on that
14 replies