Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept conversation id for login and redirect to conversation page #32

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

kumaranvpl
Copy link
Collaborator

No description provided.

@kumaranvpl kumaranvpl self-assigned this Nov 17, 2023
redirect_domain = environ.get("REDIRECT_DOMAIN", "https://captn.ai")
logged_in_message = "I have successfully logged in"
redirect_uri = f"{redirect_domain}/chat/{conv_id}?msg={logged_in_message}"
return RedirectResponse(redirect_uri)

Check warning

Code scanning / CodeQL

URL redirection from remote source Medium

Untrusted URL redirection depends on a
user-provided value
.
@rjambrecic rjambrecic merged commit bd6b324 into main Nov 17, 2023
6 checks passed
@rjambrecic rjambrecic deleted the redirect-login branch November 17, 2023 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants