-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Evaluate redundant redirects between client and server #2992
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
Comments
Logged-out only:
Logged-in only: Logged-in only, redirects to URL with username:
Only for current user:
Viewable to anyone:
|
Proposed changes to server:
Proposed changes to client:
|
@lindapaiste can you assign this issue to me |
@lindapaiste can i work on this issue |
4 tasks
@raclim I would like to work on this issue. Can you please assign me this issue? Thanks! |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Increasing Access
It is confusing to work with code where redirections can be be initiated from multiple places.
Feature enhancement details
Ref: #2987 (comment)
We should look through the https://github.com/processing/p5.js-web-editor/blob/develop/client/routes.jsx file and see which redirects are not actually needed because they are already handled by the server in https://github.com/processing/p5.js-web-editor/blob/develop/server/routes/server.routes.js.
Specifically, we should check over our usages of
userIsNotAuthenticated
,userIsAuthenticated
,userIsAuthorized
, andcreateRedirectWithUsername
. I have a hunch that we can actually delete all four of those functions. Let's make a list of all routes which use some form of redirection and whether each route's redirect logic duplicates what is already implemented on the server.The text was updated successfully, but these errors were encountered: