saundersMcLane
KKinde
•Created by saundersMcLane on 1/7/2025 in #💻┃support
Callback URL invalid
now the whole flow works
27 replies
KKinde
•Created by saundersMcLane on 1/7/2025 in #💻┃support
Callback URL invalid
update: solved the issue!
i did it with the auth endpoint. it seems that responsetype was required as a path param and login_redirect_uri is just redirect_uri.
27 replies
KKinde
•Created by saundersMcLane on 1/7/2025 in #💻┃support
Callback URL invalid
btw. the login url is the auth url with no path parameters like connection_id and so on
27 replies
KKinde
•Created by saundersMcLane on 1/7/2025 in #💻┃support
Callback URL invalid
so i can pass login_hint and org_code and connection_id to get_login_url()? no that doesnt work.
at this point i need to see a full python example? please lets cut this here and give me a working example. ive tried everything
27 replies
KKinde
•Created by saundersMcLane on 1/7/2025 in #💻┃support
Callback URL invalid
i need a human answere here and no more pointing to docs. i have read them.
27 replies
KKinde
•Created by saundersMcLane on 1/7/2025 in #💻┃support
Callback URL invalid
why dont you give me an exampe of what i have to send to the oauth endpoint?
i have a feeling that the problem is with the request i make. and please no docs again. what the docs say wrt to custom auth pages is simply incomplete.
27 replies
KKinde
•Created by saundersMcLane on 1/7/2025 in #💻┃support
Callback URL invalid
the docs again? please. 🥲
27 replies
KKinde
•Created by saundersMcLane on 1/7/2025 in #💻┃support
Callback URL invalid
i was like "ive already contacted their support team... otherwise ive tried everything i swear!" and he angrily replied "just get it done!"
27 replies
KKinde
•Created by saundersMcLane on 1/7/2025 in #💻┃support
Callback URL invalid
any news @Ages ? my boss wants results haha
27 replies
KKinde
•Created by saundersMcLane on 1/7/2025 in #💻┃support
Callback URL invalid
i sent it to you in a private chat as there appear names...
27 replies
KKinde
•Created by saundersMcLane on 1/7/2025 in #💻┃support
Callback URL invalid
i verified it all. doenst work. im gonna send you a video later.
27 replies
KKinde
•Created by saundersMcLane on 1/7/2025 in #💻┃support
Callback URL invalid
this is my code so far:
class LoginState(rx.State):
@rx.event def login(self, form_data: dict): email = form_data["email"]
connection_id = os.getenv("CONNECTION_ID")
data = { "connection_id": connection_id, "login_hint": email, "org_code": "org_b91ef01a26e", "post_login_redirect_url" : "http://localhost:3000/callback" }
print(data)
auth_endpoint = kinde_client.authorization_endpoint print(auth_endpoint) url = auth_endpoint + "?" + urllib.parse.urlencode(data) return rx.redirect(path=url, is_external=True)
@rx.event def login(self, form_data: dict): email = form_data["email"]
connection_id = os.getenv("CONNECTION_ID")
data = { "connection_id": connection_id, "login_hint": email, "org_code": "org_b91ef01a26e", "post_login_redirect_url" : "http://localhost:3000/callback" }
print(data)
auth_endpoint = kinde_client.authorization_endpoint print(auth_endpoint) url = auth_endpoint + "?" + urllib.parse.urlencode(data) return rx.redirect(path=url, is_external=True)
27 replies
KKinde
•Created by saundersMcLane on 1/7/2025 in #💻┃support
Callback URL invalid
please dont point me to docs again. thdy dont help me here.
27 replies
KKinde
•Created by saundersMcLane on 1/7/2025 in #💻┃support
Callback URL invalid
hey! the issue persists. its strange. the callbacks are correctly configured for my application. so i guess the problem is with how i initiate the login. as i said, im using a custom login form. my app is built with the reflex python framework.
the part of the docs for custom pages states that i have to pass the connection_id and the login_hint. i also watched a video on custom pages (kinde channel on youtube) and the guy uses a loginlink component. i looked that one up in the kinde github and saw that one also has to pass the login redirect url and the org id. but
uuugh... can you just provide me with a workning python snippet?
or just the link i have to use (until now im using the /oauth2/auth endpoint and urlencode login_hint, connection_id, login_redirect_url and org_code)
27 replies
KKinde
•Created by saundersMcLane on 1/6/2025 in #💻┃support
Custom Auth Page with Python
oh nevermind i overlooked a part! now its all clear! 🙂
5 replies