{ "info": { "author": "Hanne Moa", "author_email": "hanne.moa@uninett.no", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Flask", "Framework :: Pyramid", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "dataporten-auth\n===============\n\nDataporten_ is an authentication, authorization and API platform\nfor higher and lower education and research in Norway. Dataporten\noffers authentication of users to applications using OAuth 2.0 and\nthe OpenID Connect.\n\nDataporten-auth is a client for dataporten that depends on\npython-social-auth_.\n\nInstallation\n------------\n\nInstall with ``pip`` or by downloading the source and running\n``setup.py``.\n\nUsage\n-----\n\nThere needs to exist an entry for your site/app at dataporten. Log\nin to `dataporten's dashboard`_ and create an application.\n\nYou'll need to set the client id and client secret in the\nsettings of your app/site, while the application at dataporten\nwill need one or more redirect uris.\n\nBoth the name of the settings and the redirect uris depend on the\nplugins used. Add at least one of the plugins below. See\n`python-social-auth's documentation`_ for how.\n\nThe redirect uri is of the form ``:////``,\nwhere ```` is one of ``http`` or ``https``, ```` is\nthe domain name of your site and an optional path, and the ```` is\nplugin-dependent. See the examples.\n\nYou can have several redirect-uris, and you will be needing at least\none per plugin used.\n\ndataporten.psa.DataportenOauth2\n...............................\n\nPlugin name\n ``dataporten.psa.DataportenOauth2``\n\nSettings\n Client id: ``SOCIAL_AUTH_DATAPORTEN_KEY``\n\n Client secret: ``SOCIAL_AUTH_DATAPORTEN_SECRET``\n\nScopes needed\n ``userid`` and ``profile``, this is the default.\n\nUsername generated:\n Unique, alphanumeric string. You might want to let users\n change this generated username. The plugin only cares that a\n username exists and won't change the username back.\n\nRedirect-uri ends with\n /complete/dataporten/\n\nExample redirect uri:\n http://127.0.0.1/complete/dataporten/\n\ndataporten.psa.DataportenEmailOauth2\n....................................\n\nPlugin name\n ``dataporten.psa.DataportenEmailOauth2``\n\nSettings\n Client id: ``SOCIAL_AUTH_DATAPORTEN_EMAIL_KEY``\n\n Client secret: ``SOCIAL_AUTH_DATAPORTEN_EMAIL_SECRET``\n\nScopes needed\n ``email``, this must be explicitly allowed in the dashboard.\n\nUsername generated:\n From email-address\n\nRedirect-uri ends with\n /complete/dataporten_email/\n\nExample redirect uri:\n https://supersites.exmaple.net/mysite/complete/dataporten_email/\n\ndataporten.psa.DataportenFeideOauth2\n....................................\n\nPlugin name\n ``dataporten.psa.DataportenEmailOauth2``\n\nSettings\n Client id: ``SOCIAL_AUTH_DATAPORTEN_FEIDE_KEY``\n\n Client secret: ``SOCIAL_AUTH_DATAPORTEN_FEIDE_SECRET``\n\nScopes needed\n ``userid-feide``, this must be explicitly allowed in the dashboard.\n\nUsername generated:\n From the Feide attribute ``eduPersonPrincipalName``, which looks\n like an email address.\n\nRedirect-uri ends with\n /complete/dataporten_feide/\n\nExample redirect uri:\n https://example.com/cheatsheet/complete/dataporten_feide/\n\nDemo\n----\n\n1. Get the source code\n2. Install dependencies: ``pip install -r requirements/demo.txt``\n3. Make an application at dataporten\n4. Edit the settings-file to set ``SOCIAL_AUTH_DATAPORTEN_KEY`` and ``SOCIAL_AUTH_DATAPORTEN_SECRET``\n5. Set three redirect-uris, all starting with ``http://127.0.0.1:8000``\n6. Run ``python mange.py runserver``\n7. Visit http://127.0.0.1:8000 in a fresh browser. Log out doesn't work (yet),\n so to reset, delete the file ``db.sqlite3`` and run ``python mange.py runserver`` again\n\nOptionally, you can add other python-social-auth plugins as well.\n\n.. _Dataporten: https://docs.dataporten.no/\n.. _python-social-auth: http://psa.matiasaguirre.net/docs/\n.. _`dataporten's dashboard`: https://dashboard.dataporten.no/\n.. _python-social-auth's documentation: http://psa.matiasaguirre.net/docs/configuration/\n\n\n\n:Version: 0.1.1", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hmpf/dataporten-auth", "keywords": "django,oauth2", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "dataporten-auth", "package_url": "https://pypi.org/project/dataporten-auth/", "platform": "any", "project_url": "https://pypi.org/project/dataporten-auth/", "project_urls": { "Homepage": "https://github.com/hmpf/dataporten-auth" }, "release_url": "https://pypi.org/project/dataporten-auth/0.1.1/", "requires_dist": [ "python-social-auth" ], "requires_python": "", "summary": "A plugin for python-social-auth to authenticate with dataporten", "version": "0.1.1" }, "last_serial": 2268599, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "55da274345d112a4f1d6f19abf9ecfec", "sha256": "cb3948d2e12c2b398bbb48472fa056e74d3cb047d7646d5ebc5300455fdc62d9" }, "downloads": -1, "filename": "dataporten_auth-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "55da274345d112a4f1d6f19abf9ecfec", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6549, "upload_time": "2016-06-23T12:41:58", "url": "https://files.pythonhosted.org/packages/ef/a8/c8b406abaa15df8749619d0e67f9f46192731083960fa905d3d3ad6efef7/dataporten_auth-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "646b5297f825bb0e266c72525344f5d8", "sha256": "bcc03ea25381f55920db4f3605ce65c5b212f796619725baf67f951b8a6677e3" }, "downloads": -1, "filename": "dataporten-auth-0.1.tar.gz", "has_sig": false, "md5_digest": "646b5297f825bb0e266c72525344f5d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4979, "upload_time": "2016-06-23T12:40:56", "url": "https://files.pythonhosted.org/packages/19/cf/f3a86d4df9a6c017e8aee6484138d8b5d13d89911571947d9e5f411e83e3/dataporten-auth-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "83973b24f212a3e1f5ba510fbb1a5c5b", "sha256": "65da976467cd6ab53baeef6970bb0127c9e5f7dcd1c8fd72e4957159c4eee908" }, "downloads": -1, "filename": "dataporten_auth-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "83973b24f212a3e1f5ba510fbb1a5c5b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6578, "upload_time": "2016-08-08T11:44:55", "url": "https://files.pythonhosted.org/packages/ce/7a/565e22ff7552675bca1e852dcab097d181495b7e9014ed2555638c13244c/dataporten_auth-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a890f41b19bcdc05f87dcf30c523ae15", "sha256": "1d208e133eac4aeb804b17374519aec9ad51ca8ee192a0b8f3a3fcc1943ae85d" }, "downloads": -1, "filename": "dataporten-auth-0.1.1.tar.gz", "has_sig": false, "md5_digest": "a890f41b19bcdc05f87dcf30c523ae15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4966, "upload_time": "2016-08-08T11:44:57", "url": "https://files.pythonhosted.org/packages/7e/55/5dd5b60752d9b93bf81e4b8b88ecac0f9f3a728bc7a0eee444b0748399b5/dataporten-auth-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "83973b24f212a3e1f5ba510fbb1a5c5b", "sha256": "65da976467cd6ab53baeef6970bb0127c9e5f7dcd1c8fd72e4957159c4eee908" }, "downloads": -1, "filename": "dataporten_auth-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "83973b24f212a3e1f5ba510fbb1a5c5b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6578, "upload_time": "2016-08-08T11:44:55", "url": "https://files.pythonhosted.org/packages/ce/7a/565e22ff7552675bca1e852dcab097d181495b7e9014ed2555638c13244c/dataporten_auth-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a890f41b19bcdc05f87dcf30c523ae15", "sha256": "1d208e133eac4aeb804b17374519aec9ad51ca8ee192a0b8f3a3fcc1943ae85d" }, "downloads": -1, "filename": "dataporten-auth-0.1.1.tar.gz", "has_sig": false, "md5_digest": "a890f41b19bcdc05f87dcf30c523ae15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4966, "upload_time": "2016-08-08T11:44:57", "url": "https://files.pythonhosted.org/packages/7e/55/5dd5b60752d9b93bf81e4b8b88ecac0f9f3a728bc7a0eee444b0748399b5/dataporten-auth-0.1.1.tar.gz" } ] }