-
Notifications
You must be signed in to change notification settings - Fork 45
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
APP-6932 better local redirect validation #390
base: main
Are you sure you want to change the base?
Conversation
"viam.dev": true, | ||
"viam.com": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should these be app.viam.dev and app.viam.com?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left them as this because we have toyed with allowing users to log in from the marketing page and docs, but maybe I am being a little too forward-thinking here 😃 .
Let's start stricter; I'll update it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gotcha! yeah i wasnt sure if it would pass the hostnameWhitelist[hostname]
check for app.viam.com
urls otherwise. could be misreading though
is there an app pr up yet with these changes and the goutils bump so we can test? |
Not yet, I will set that up. |
Potential missing cases:
|
Updates our
backto
redirect logic to only allow fully-qualified whitelistedhttps
URLs. This will require a change inapp
to no longer pass just the currentpathname
forbackto
and instead to pass the full current URL.