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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle authentication type in Facebook #5694

Merged
merged 2 commits into from May 11, 2016
Merged

Conversation

@nuvipannu
Copy link
Contributor

@nuvipannu nuvipannu commented Nov 23, 2015

Allow using authType in Facebook login (https://developers.facebook.com/docs/facebook-login/reauthentication) 馃巿

@timbotnik
Copy link

@timbotnik timbotnik commented Nov 24, 2015

Seems useful, thanks!

@IonicaBizau
Copy link

@IonicaBizau IonicaBizau commented Nov 25, 2015

@nuvipannu 馃憤

@timbotnik Take a look at #5693 as well. 馃榿 While coding together with @nuvipannu, we discovered these limitations and thought it's a good thing for universe to fix them. For some reason the tests are failing, but doesn't seem to be related to our changes. 馃挮

@robertpitt
Copy link
Contributor

@robertpitt robertpitt commented Nov 25, 2015

You will probably need to update the documentation to show the new option before this is accepted.

@IonicaBizau
Copy link

@IonicaBizau IonicaBizau commented Nov 25, 2015

@robertpitt Where should I update the docs for these OAuth APIs? 馃挱

@IonicaBizau
Copy link

@IonicaBizau IonicaBizau commented Nov 29, 2015

@robertpitt The relevant docs I found are these鈥撯揵ut they don't contain the specific facebook/twitter information.

@IonicaBizau
Copy link

@IonicaBizau IonicaBizau commented Dec 9, 2015

@benjamn Can you please take a look at this pull request and #5693? 馃敂

@IonicaBizau IonicaBizau force-pushed the nuvipannu:facebook-force-login branch 2 times, most recently Dec 12, 2015
@JonathanHindi
Copy link

@JonathanHindi JonathanHindi commented Apr 11, 2016

@benjamn What's pending for this to be merged?

@IonicaBizau
Copy link

@IonicaBizau IonicaBizau commented Apr 18, 2016

@benjamn @JonathanHindi I'm pretty sad to see how much time it takes for a simple fix like this to get merged (actually, this is not even merged yet). 馃槥

@benjamn
benjamn reviewed May 3, 2016
View changes
packages/facebook/facebook_client.js Outdated

// Handle authentication type (e.g. for force login you need authType: "reauthenticate")
if (options.authType) {
loginUrl = loginUrl + "&authType=" + options.authType;

This comment has been minimized.

@benjamn

benjamn May 3, 2016
Member

I think this should maybe be

loginUrl += "&authType=" + encodeURIComponent(options.authType);

to make sure the authType is properly URL-escaped?

This comment has been minimized.

@IonicaBizau

IonicaBizau May 6, 2016

@benjamn I don't think that's really needed, but just in case, I just pushed it.

@IonicaBizau IonicaBizau force-pushed the nuvipannu:facebook-force-login branch May 6, 2016
@IonicaBizau
Copy link

@IonicaBizau IonicaBizau commented May 9, 2016

@JonathanHindi @benjamn Any ideas why the tests are failing? 馃挜

Same happens in #6987.
I have the feeling it doesn't happen because of my (or @nuvipannu's) changes. 馃殌

@zol
Copy link
Contributor

@zol zol commented May 10, 2016

Hey @nuvipannu and @JonathanHindi . Sorry it's taken us so long to look at this.We're now working through our PR backlog and merging whatever we can, this looks like a good candidate. Could you please rebase against the latest devel branch as we've recently fixed our CI infrastructure so tests should now be passing (as you said, it's unlikely this PR would have broken any test).

@zol zol self-assigned this May 10, 2016
@IonicaBizau IonicaBizau force-pushed the nuvipannu:facebook-force-login branch to 3c03fae May 11, 2016
@IonicaBizau
Copy link

@IonicaBizau IonicaBizau commented May 11, 2016

@zol Thanks for the feedback. I have just rebased and pushed. Waiting for the tests.

@IonicaBizau
Copy link

@IonicaBizau IonicaBizau commented May 11, 2016

@zol @nuvipannu Tests are passing 馃帀 馃殌

@zol zol merged commit 87bf256 into meteor:devel May 11, 2016
3 checks passed
3 checks passed
@apollo-cla
CLA Author has signed the Meteor CLA.
Details
ci/circleci Your tests passed on CircleCI!
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
zol pushed a commit that referenced this pull request May 11, 2016
Zoltan Olah
@zol
Copy link
Contributor

@zol zol commented May 11, 2016

Merged, thank you.

@IonicaBizau
Copy link

@IonicaBizau IonicaBizau commented May 11, 2016

@nuvipannu Finally! Yay! 馃帀 馃榿 馃帄

@sahanDissanayake
Copy link

@sahanDissanayake sahanDissanayake commented Jun 14, 2016

is this documented on the Guide http://docs.meteor.com/api/accounts.html#Meteor-loginWith ? thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

8 participants