{ "info": { "author": "Bearstech", "author_email": "py@beasrtech.com", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "Intended Audience :: Developers" ], "description": "Usage\n=====\n\nAdd the middlware class before the ``AuthenticationMiddleware``::\n\n MIDDLEWARE_CLASSES = (\n ...\n 'authtkt.middleware.AuthTktMiddleware',\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\n ...\n )\n\nCallback\n========\n\nYou can use a callback to use something to fill the newly created user in the third party app.\n\nSettings::\n\n AUTHTKT_CALLBACK = 'yourmodule:update_user'\n\nCallback::\n\n from sqlalchemy import engine_from_config, Table, MetaData\n from django.conf import settings\n\n\n def update_user(user):\n engine = engine_from_config({'sqlalchemy.url': settings.USER_DB})\n metadata = MetaData(engine)\n users = Table('auth_user', metadata, autoload=True)\n record = users.select(users.c.id==user.id).execute().fetchone()\n for k, v in record.items():\n setattr(user, str(k), v)\n\n\nManual identify/forget user\n============================\n\nManualy identify user (eg: set a cookie). You need to set a correct\n``request.user``::\n\n request.environ['authtkt.identify'](request, response)\n\nManualy forget user (eg: reset a cookie)::\n\n request.environ['authtkt.forget'](request, response)", "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/bearstech/django-authtkt", "keywords": "django auth cookie", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "django-authtkt", "package_url": "https://pypi.org/project/django-authtkt/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-authtkt/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/bearstech/django-authtkt" }, "release_url": "https://pypi.org/project/django-authtkt/0.3/", "requires_dist": null, "requires_python": null, "summary": "django-authtkt is used to share auth between more than one django site (a kind of SSO auth)", "version": "0.3" }, "last_serial": 754481, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "1cc32d60f70fd86c7ea4754f45faff4d", "sha256": "caf7da1abb7c118416bbd5b121a8726c8f060f6f87d31f8956f6548e4b0a93d8" }, "downloads": -1, "filename": "django-authtkt-0.2.tar.gz", "has_sig": false, "md5_digest": "1cc32d60f70fd86c7ea4754f45faff4d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5968, "upload_time": "2011-05-17T17:44:23", "url": "https://files.pythonhosted.org/packages/ab/ba/260d3ba9e78de2bb625649c4701fff86d2103faf3b81eea611ea44288886/django-authtkt-0.2.tar.gz" }, { "comment_text": "", "digests": { "md5": "dde850216e9b54e9a21aef6550d9beed", "sha256": "807e9fd230d9c96e00b394b5c40c2c6c3cae0d521fff1801a11c3b7724d11e4a" }, "downloads": -1, "filename": "django-authtkt-0.2.zip", "has_sig": false, "md5_digest": "dde850216e9b54e9a21aef6550d9beed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11216, "upload_time": "2011-05-17T17:44:22", "url": "https://files.pythonhosted.org/packages/19/c3/797fed118627091104d9f8e7955c34d6dc32edc09bb65c1c60b98d792d62/django-authtkt-0.2.zip" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "4d77874c70b16ea38764b60367d20aec", "sha256": "339c30ff5da1500784e173c1cc15894e03d2e0270ddcf339ba7ca90ea6d4d652" }, "downloads": -1, "filename": "django-authtkt-0.3.tar.gz", "has_sig": false, "md5_digest": "4d77874c70b16ea38764b60367d20aec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6010, "upload_time": "2011-05-19T09:48:08", "url": "https://files.pythonhosted.org/packages/ac/c8/3736057656386b35f04f255cf384ba321c063317e971c605accb1063df26/django-authtkt-0.3.tar.gz" }, { "comment_text": "", "digests": { "md5": "0b8f2b077caade37f44a41ab79e1f459", "sha256": "ab533760edaed7ff93ee0e036845135eb86bab46a60ae6bef363cf95ef9fcf6c" }, "downloads": -1, "filename": "django-authtkt-0.3.zip", "has_sig": false, "md5_digest": "0b8f2b077caade37f44a41ab79e1f459", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11436, "upload_time": "2011-05-19T09:48:08", "url": "https://files.pythonhosted.org/packages/60/82/0ea4ac751d760a1d22eff86e85e58dbe491ed585d9bcf92ec9a13933406f/django-authtkt-0.3.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4d77874c70b16ea38764b60367d20aec", "sha256": "339c30ff5da1500784e173c1cc15894e03d2e0270ddcf339ba7ca90ea6d4d652" }, "downloads": -1, "filename": "django-authtkt-0.3.tar.gz", "has_sig": false, "md5_digest": "4d77874c70b16ea38764b60367d20aec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6010, "upload_time": "2011-05-19T09:48:08", "url": "https://files.pythonhosted.org/packages/ac/c8/3736057656386b35f04f255cf384ba321c063317e971c605accb1063df26/django-authtkt-0.3.tar.gz" }, { "comment_text": "", "digests": { "md5": "0b8f2b077caade37f44a41ab79e1f459", "sha256": "ab533760edaed7ff93ee0e036845135eb86bab46a60ae6bef363cf95ef9fcf6c" }, "downloads": -1, "filename": "django-authtkt-0.3.zip", "has_sig": false, "md5_digest": "0b8f2b077caade37f44a41ab79e1f459", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11436, "upload_time": "2011-05-19T09:48:08", "url": "https://files.pythonhosted.org/packages/60/82/0ea4ac751d760a1d22eff86e85e58dbe491ed585d9bcf92ec9a13933406f/django-authtkt-0.3.zip" } ] }