This PR implements authentication using Google OAuth via flask-oauth library. The approach that I took was tricking the Pagure authentication machinery into thinking that the user who logged through Google was a FAS user (by creating a fake flask.g.fas_user), hence the changes are contained in only couple of methods in pagure/__init__.py.
If you don't fancy adding the new imports to the pagure/__init__.py file, I guess I could create some new utility functions and add them somewhere to pagure/lib.
This PR implements authentication using Google OAuth via flask-oauth library. The approach that I took was tricking the Pagure authentication machinery into thinking that the user who logged through Google was a FAS user (by creating a fake
flask.g.fas_user), hence the changes are contained in only couple of methods inpagure/__init__.py.If you don't fancy adding the new imports to the
pagure/__init__.pyfile, I guess I could create some new utility functions and add them somewhere topagure/lib.