{ "info": { "author": "Christopher Davenport", "author_email": "ChristopherDavenport@outlook.com", "bugtrack_url": null, "classifiers": [], "description": "Eckerd Django Google SSO\n============\n\nA reusable django application for google sso\n\nInstallation\n------------\n\nTo get the latest stable release from PyPi\n\n.. code-block:: bash\n\n pip install eckerd-django-google-sso\n\nTo get the latest commit from GitHub\n\n.. code-block:: bash\n\n pip install -e git+git://github.com/christopherdavenport/eckerd-django-google-sso.git#egg=eckerd-django-google-sso\n\nTODO: Describe further installation steps (edit / remove the examples below):\n\nAdd ``eckerd-django-google-sso`` to your ``INSTALLED_APPS``\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n ...,\n 'eckerd-django-google-sso',\n 'social.apps.django_app.default',\n 'django12factor',\n )\n\nAdd the ``eckerd-django-google-sso`` URLs to your ``urls.py``\n\n.. code-block:: python\n\n urlpatterns = [\n url(r'^/', include('eckerd-django-google-sso.urls')),\n ]\n\nBefore your tags/filters are available in your templates, load them by using\n\n.. code-block:: html\n\n\t{% load backend_utils %}\n\n\nDon't forget to migrate your database\n\n.. code-block:: bash\n\n ./manage.py migrate\n\n\nUsage\n-----\n\nSimple Wrap Your Content In a @LOGIN_REQUIRED\n\nFinally Drop These Settings In Place In The Final Application\n\n.. code-block:: python\n\n AUTHENTICATION_BACKENDS = (\n 'social.backends.google.GoogleOAuth2',\n 'django.contrib.auth.backends.ModelBackend',\n )\n\n AUTH_USER_MODEL = 'eckerd-django-google-sso.CustomUser'\n SESSION_EXPIRE_AT_BROWSER_CLOSE = True\n LOGIN_URL = '/login/'\n LOGIN_REDIRECT_URL = '/'\n URL_PATH = ''\n SOCIAL_AUTH_STRATEGY = 'social.strategies.django_strategy.DjangoStrategy'\n SOCIAL_AUTH_STORAGE = 'social.apps.django_app.default.models.DjangoStorage'\n\n # Google OAuth2 (google-oauth2)\n SOCIAL_AUTH_GOOGLE_OAUTH2_IGNORE_DEFAULT_SCOPE = True\n SOCIAL_AUTH_GOOGLE_OAUTH2_USE_UNIQUE_USER_ID = True\n SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS = ['eckerd.edu']\n SOCIAL_AUTH_GOOGLE_OAUTH2_SCOPE = [\n 'https://www.googleapis.com/auth/userinfo.email',\n 'https://www.googleapis.com/auth/userinfo.profile'\n ]\n\n SOCIAL_AUTH_PIPELINE = (\n 'social.pipeline.social_auth.social_details',\n 'social.pipeline.social_auth.social_uid',\n 'social.pipeline.social_auth.auth_allowed',\n 'social.pipeline.social_auth.associate_by_email',\n 'social.pipeline.social_auth.social_user',\n 'social.pipeline.user.get_username',\n 'social.pipeline.user.create_user',\n 'social.pipeline.social_auth.associate_user',\n 'social.pipeline.social_auth.load_extra_data',\n 'social.pipeline.user.user_details'\n )\n\n\n SOCIAL_AUTH_ADMIN_USER_SEARCH_FIELDS = ['first_name', 'last_name', 'email',\n 'username']\n\n\n custom_settings = (\n 'SOCIAL_AUTH_GOOGLE_OAUTH2_KEY',\n 'SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET',\n )\n\n import django12factor\n\n d12f = django12factor.factorise(custom_settings=custom_settings)\n DATABASES = d12f['DATABASES']\n SECRET_KEY = d12f['SECRET_KEY']\n SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = d12f['SOCIAL_AUTH_GOOGLE_OAUTH2_KEY']\n SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = d12f['SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET']\n ALLOWED_HOSTS = d12f['ALLOWED_HOSTS']\n DEBUG = d12f['DEBUG']\n LOGGING = d12f['LOGGING']\n\n\nContribute\n----------\n\nIf you want to contribute to this project, please perform the following steps\n\n.. code-block:: bash\n\n # Fork this repository\n # Clone your fork\n mkvirtualenv -p python2.7 eckerd-django-google-sso\n make develop\n\n git co -b feature_branch master\n # Implement your feature and tests\n git add . && git commit\n git push -u origin feature_branch\n # Send us a pull request for your feature branch\n\nIn order to run the tests, simply execute ``tox``. This will install two new\nenvironments (for Django 1.8 and Django 1.9) and run the tests against both\nenvironments.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/christopherdavenport/eckerd-django-google-sso", "keywords": "django,app,reusable,google,sso", "license": "The MIT License", "maintainer": null, "maintainer_email": null, "name": "eckerd-django-google-sso", "package_url": "https://pypi.org/project/eckerd-django-google-sso/", "platform": "OS Independent", "project_url": "https://pypi.org/project/eckerd-django-google-sso/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/christopherdavenport/eckerd-django-google-sso" }, "release_url": "https://pypi.org/project/eckerd-django-google-sso/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "A reusable django application for google sso", "version": "0.0.1" }, "last_serial": 2122046, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "3400d29f898bad9177298d1de5b9103f", "sha256": "a23d391faa461e3dc1f45ffae80dc7e2ab0e40ef7695311b42c326612862ca99" }, "downloads": -1, "filename": "eckerd-django-google-sso-0.0.1.tar.gz", "has_sig": false, "md5_digest": "3400d29f898bad9177298d1de5b9103f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9199, "upload_time": "2016-05-18T16:07:56", "url": "https://files.pythonhosted.org/packages/c3/c5/8fdf864a2289f710986295fb0f1bf0cd8999a81ff678e998d66ca1623cf5/eckerd-django-google-sso-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3400d29f898bad9177298d1de5b9103f", "sha256": "a23d391faa461e3dc1f45ffae80dc7e2ab0e40ef7695311b42c326612862ca99" }, "downloads": -1, "filename": "eckerd-django-google-sso-0.0.1.tar.gz", "has_sig": false, "md5_digest": "3400d29f898bad9177298d1de5b9103f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9199, "upload_time": "2016-05-18T16:07:56", "url": "https://files.pythonhosted.org/packages/c3/c5/8fdf864a2289f710986295fb0f1bf0cd8999a81ff678e998d66ca1623cf5/eckerd-django-google-sso-0.0.1.tar.gz" } ] }