-
Notifications
You must be signed in to change notification settings - Fork 2
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
Global signin #35
base: main
Are you sure you want to change the base?
Global signin #35
Conversation
…ReactViewer into revert-socket.io
client/src/App.js
Outdated
const GET_URL_DEV = | ||
'https://datafoundation.iiit.ac.in/api/detokn?token=' + tokenId; | ||
// const GET_URL_DEV = 'http://10.4.25.20:3001/api/detokn?token=' + tokenId; |
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.
move this to constants
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.
Capital case is only used when it is a global constant
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.
resolved
client/src/App.js
Outdated
const GET_URL_DEV = | ||
'https://datafoundation.iiit.ac.in/api/detokn?token=' + tokenId; | ||
// const GET_URL_DEV = 'http://10.4.25.20:3001/api/detokn?token=' + tokenId; |
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.
pls remove comments in PR
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.
resolved
client/src/App.js
Outdated
if (isLoggedIn) { | ||
return <Navigate replace to="/" />; | ||
} else { | ||
// <Login checkUser={checkUser} /> |
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.
remove comments
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.
- login component is not needed. Delete the file
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.
resplved
// <Login checkUser={checkUser} /> | ||
window.location.href = | ||
'https://datafoundation.iiit.ac.in/sign-in?redirect=/hv'; | ||
return <p>Redirecting ...</p>; |
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.
why is this required?
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.
This redirects to login url
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.
config files are not supposed to be pushed. Had pointed out this thing in your previous PR also, if this gets merged, we would have to change the file in server manually.
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.
config is just for development purpose
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.
done
@RhythmAgg Add video in PR
|
.gitignore
Outdated
node_modules | ||
client/src/components/Config |
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.
add .env also here
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.
done
global-signin-demo.mp4Attached is the demo video for the global signin |
Global Signin