flask-social icon indicating copy to clipboard operation
flask-social copied to clipboard

Flask-Social Version 1.6.3

Open eriktaubeneck opened this issue 11 years ago • 17 comments

We've got a few PRs and issues lined up, so I figured I'd create a checklist for things we'd like for Version 1.6.3 and I can work to get them in line, onto develop, and we can get a new version pushed to master and pypi shortly.

  • [x] Issue #31 solved by PR #37
  • [ ] Issue #24 *
  • [x] Upgrade to Flask-Oauthlib as discussed in Issue #29 *
  • [x] PR #33 from @pib with added tests
  • [x] previous PR should allow us to implement PR #1 safely (if we are still interested)

@mattupstate would like to get feedback on this plan. The * items are ones that I will take care of, and I can take care of merging in portions of pull requests, if we decide.

eriktaubeneck avatar Feb 19 '14 23:02 eriktaubeneck

Actually it was PR #33 that I was going to add tests for. I think the conclusion for #36 was that it was unneeded.

pib avatar Feb 19 '14 23:02 pib

Yep. Typo, my bad. Thanks! (and fixed)

eriktaubeneck avatar Feb 20 '14 01:02 eriktaubeneck

@eriktaubeneck, @mattupstate : Any update on plans to release the next version? v1.6.2 has issues with google login which seems to have been fixed on the devel branch with the move to flask-oauthlib + mods to providers/google.py. I would prefer to use Flask-Social in requirements.txt instead of the git+https:// entry for production.

sayerhs avatar May 12 '15 12:05 sayerhs

@sayerhs I haven't been using flask-social at work anymore, so I haven't been able to give it nearly as much attention as I used to. Hopefully I'll get a chance soon to merge this all in, and @mattupstate can push a new version .

eriktaubeneck avatar May 13 '15 14:05 eriktaubeneck

@eriktaubeneck Great! Let me know if there is something I can do to help speed up the process. Thanks.

sayerhs avatar May 13 '15 21:05 sayerhs

@eriktaubeneck Any word on this? https://pypi.python.org/pypi/Flask-Social states 1.6.2 is still the latest and I am having issues with Google login like @sayerhs stated. Thanks!

jquacinella avatar Aug 04 '15 18:08 jquacinella

Hey @jquacinella, sorry for the delay. I haven't been using Flask-Social at my new job, so I haven't been able to dedicate the same amount of time to the project. I believe the same is true WRT @mattupstate. We should potentially discuss bringing in more maintainers who are actively using the project.

eriktaubeneck avatar Aug 11 '15 15:08 eriktaubeneck

@eriktaubeneck - I will definitely be willing to contribute. Also I think it would be good to revisit the list you have developed and see if those are still the priorities.

On Tue, Aug 11, 2015 at 11:39 AM, Erik Taubeneck [email protected] wrote:

Hey @jquacinella https://github.com/jquacinella, sorry for the delay. I haven't been using Flask-Social at my new job, so I haven't been able to dedicate the same amount of time to the project. I believe the same is true WRT @mattupstate https://github.com/mattupstate. We should potentially discuss bringing in more maintainers who are actively using the project.

— Reply to this email directly or view it on GitHub https://github.com/mattupstate/flask-social/issues/38#issuecomment-129934083 .

sayerhs avatar Aug 11 '15 16:08 sayerhs

I think the 2 largest priorities would be switching over to Flask-Oauthlib and getting CSRF working properly.

eriktaubeneck avatar Aug 12 '15 14:08 eriktaubeneck

@eriktaubeneck - It seems that https://github.com/mattupstate/flask-social/pull/37 already has migrated to Flask-Oauthlib, am I missing something?

Regarding CSRF, my understanding is that it is necessary for PUT/DELETE requests. Is that correct? My vote would be to disable that functionality, clean up the rest of the login process and then release a new version. I am not sure what the use case is for PUT/DELETE requests through json.

sayerhs avatar Aug 12 '15 14:08 sayerhs

Ahh yes, you are correct WRT Flask-Oauthlib. It's been a little while since using the package.

For CSRF, the issue is that if you wish to use the CsrfProtect function that Flask-WTF provides, it breaks all of the social routes. You can see Issue 24 for more details. I'll also look at my old code and see if I can figure out if we got around it, it may provide clues in how to implement it.

eriktaubeneck avatar Aug 12 '15 14:08 eriktaubeneck

Do you have an example of the breakage of flask social routes? Or the monkey patching code that you're using as a workaround?

On Wed, Aug 12, 2015 at 10:47 AM, Erik Taubeneck [email protected] wrote:

Ahh yes, you are correct WRT Flask-Oauthlib. It's been a little while since using the package.

For CSRF, the issue is that if you wish to use the CsrfProtect function that Flask-WTF provides, it breaks all of the social routes. You can see Issue 24 https://github.com/mattupstate/flask-social/issues/24 for more details. I'll also look at my old code and see if I can figure out if we got around it, it may provide clues in how to implement it.

— Reply to this email directly or view it on GitHub https://github.com/mattupstate/flask-social/issues/38#issuecomment-130327669 .

sayerhs avatar Aug 12 '15 15:08 sayerhs

All we did was manually insert a csrf_token() into the form when we posted the signup, i.e.:

<form action="{{ url_for('social.connect', provider_id=provider_id) }}" method="POST">
    <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
    <button type="submit" {{provider_id}} </button>
</form>

eriktaubeneck avatar Aug 20 '15 15:08 eriktaubeneck

Hi Erik,

So after reading Flask-WTF documentation ( http://flask-wtf.readthedocs.org/en/latest/csrf.html), it seems that this is essentially an app developer setting and the changes are mostly in the templates. So if we update the documentation and flask-social-example. I don't see anything in flask-social itself that needs fixing.

On Thu, Aug 20, 2015 at 11:22 AM, Erik Taubeneck [email protected] wrote:

All we did was manually insert a csrf_token() into the form when we posted the signup, i.e.:

— Reply to this email directly or view it on GitHub https://github.com/mattupstate/flask-social/issues/38#issuecomment-133048033 .

sayerhs avatar Aug 22 '15 19:08 sayerhs

See the discussion here for more detail, but essentially the issue is not making Flask-Social compatible with CSRF, but to utilize it and protect someone from getting an account deleted through a CSRF attack.

eriktaubeneck avatar Aug 22 '15 20:08 eriktaubeneck

Is here someone active?

KeNaCo avatar Jan 07 '16 21:01 KeNaCo

+1

oleksandr-l5 avatar Feb 26 '16 12:02 oleksandr-l5