{ "info": { "author": "Zope Foundation and Contributors", "author_email": "zope-dev@zope.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Zope :: 3", "Intended Audience :: Developers", "License :: OSI Approved :: Zope Public License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Internet :: WWW/HTTP" ], "description": "This package provides an authentication viewlet implementation for Zope3.\n\n\n.. contents::\n\nLogin and logout\n----------------\n\nLogin and logout work both for basic auth and cookie auth.\n\n\nSetup\n~~~~~\n\nThe layout page template has to include two content providers (viewlet\nmangers):\n\n - ``login-logout-head`` inside the head tag to get automatic\n redirects and JavaScript code which does the logout for basic\n auth and\n\n - ``login-logout`` inside the body tag to get login and logout links.\n\nThe sample template looks like this:\n\n >>> import os.path\n >>> template_path = os.path.join(os.path.dirname(__file__), \"tests\",\n ... \"login-logout-template.pt\")\n >>> with open(template_path, \"r\") as t:\n ... print(t.read())\n \n \n
\n\n \n If you see this screen for more than 5 seconds, click here.\n \n
\n\n Please provide Login Information\n
\n \n\n Please provide Login Information\n
\n \n\n Please provide Login Information\n
\n \n\n \n If you see this screen for more than 5 seconds, click here.\n \n
\n