{ "info": { "author": "Overcast Software - S\u00e6var \u00d6fj\u00f6r\u00f0 Magn\u00fasson", "author_email": "saevar@overcast.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "A simple python client for the Icelandic government authentication service \u00cdslykill (www.islykill.is)\r\n You must apply for access before using this library.\r\n \r\n Usage\r\n =====\r\n \r\n Just remember to set the `username`, `password` and `service_id` as your own.\r\n `service_id` is the ID you are given from the national registry of Iceland (www.skra.is), e.g. for \r\n www.betraisland.is the id is `betraisland.is` and the \u00cdslykill authentication url is \r\n `https://innskraning.island.is/?id=betraisland.is`\r\n \r\n >>> import islykill\r\n >>> islykill.username = \"Your-username-here\"\r\n >>> islykill.password = \"Your-password-here\"\r\n >>> islykill.service_id = \"dev.roddfolksins.is\"\r\n >>> token = 'Some-received-token' # the token received from island.is\r\n >>> ip_address = '1.1.1.1' # remote user ip address\r\n >>> result = islykill.generate_saml_from_token(token, ip_address)\r\n >>> print result\r\n {'ssn': '1234567890', 'ip_address': '1.1.1.1', 'name': u'Jon Jonsson'}\r\n \r\n If an error occurs, the result from `generate_saml_from_token` will return a dictionary with the \r\n key \"error\" with the body of the error as value, e.g.\r\n \r\n >>> print result\r\n {'error': 'HTTPError = 500'}\r\n \r\n 500 usually mean that you can make the request again immediately, just a glitch in the\r\n webservice.\r\n \r\n >>> print result\r\n {'error': 'Unable to find SAML assertion from token.'}\r\n \r\n \"Unable to find SAML assertion from token\" means that the token is invalid or expired somehow, \r\n which means the user has to authenticate again.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/overcastsoftware/py-islykill", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "py-islykill", "package_url": "https://pypi.org/project/py-islykill/", "platform": "any", "project_url": "https://pypi.org/project/py-islykill/", "project_urls": { "Homepage": "http://github.com/overcastsoftware/py-islykill" }, "release_url": "https://pypi.org/project/py-islykill/0.1/", "requires_dist": null, "requires_python": null, "summary": "A simple python client for the Icelandic government authentication service \u00cdslykill (www.islykill.is)", "version": "0.1" }, "last_serial": 840674, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "75826c7abf20d637e74111470d92909d", "sha256": "f976094d4b72e29183ae8b93e4f2fba2765cf09cfcf0dbf2018dbe4189526c39" }, "downloads": -1, "filename": "py-islykill-0.1.tar.gz", "has_sig": false, "md5_digest": "75826c7abf20d637e74111470d92909d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5122, "upload_time": "2013-08-15T11:29:38", "url": "https://files.pythonhosted.org/packages/f4/95/91c28a284d9088523a0c0e2f6bb7df881d9face85819ad83eafbfcbed154/py-islykill-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "75826c7abf20d637e74111470d92909d", "sha256": "f976094d4b72e29183ae8b93e4f2fba2765cf09cfcf0dbf2018dbe4189526c39" }, "downloads": -1, "filename": "py-islykill-0.1.tar.gz", "has_sig": false, "md5_digest": "75826c7abf20d637e74111470d92909d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5122, "upload_time": "2013-08-15T11:29:38", "url": "https://files.pythonhosted.org/packages/f4/95/91c28a284d9088523a0c0e2f6bb7df881d9face85819ad83eafbfcbed154/py-islykill-0.1.tar.gz" } ] }