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

Volunteers system integration #356

Merged
merged 4 commits into from
May 10, 2017
Merged

Volunteers system integration #356

merged 4 commits into from
May 10, 2017

Conversation

roy-zahor
Copy link
Contributor

@roy-zahor roy-zahor commented Apr 26, 2017

set env variable for volunteers base url
VOLUNTEERS_BASE_URL

@roy-zahor
Copy link
Contributor Author

@noam-almog @may-ben-arie Please take a look

User.forge({user_id: req.user.attributes.user_id}).fetch().then(user => {
if (user) {
var token = passportLib.generateJwtToken(user.attributes.email);
res.redirect("http://URL.OF.VOLUNTEERING.SYSTEM.LANDING.PAGE?auth_token=" + token);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@roy-zahor why are we back to the solution where we send the token as a parameter ?
i thought we agreed on transferring it as a cookie

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@noam-almog You are correct, I didn't describe this PR correctly. What I was trying to show is how relatively easy is to use existing libraries to implement the SSO. I didn't mean to use token as a parameter.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@roy-zahor my file changes are almost done i'll keep you guys informed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@noam-almog Cool! Closing this issue..

@roy-zahor roy-zahor closed this Apr 27, 2017
@roy-zahor roy-zahor reopened this May 10, 2017
@roy-zahor roy-zahor changed the title [WIP] Volunteers system integration - for review Volunteers system integration May 10, 2017
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