You must apply for access before using this library.
Usage
=====
Just remember to set the `username`, `password` and `service_id` as your own.
`service_id` is the ID you are given from the national registry of Iceland (www.skra.is), e.g. for
www.betraisland.is the id is `betraisland.is` and the Íslykill authentication url is
`https://innskraning.island.is/?id=betraisland.is`
>>> import islykill
>>> islykill.username = "Your-username-here"
>>> islykill.password = "Your-password-here"
>>> islykill.service_id = "dev.roddfolksins.is"
>>> token = 'Some-received-token' # the token received from island.is
>>> ip_address = '1.1.1.1' # remote user ip address
>>> result = islykill.generate_saml_from_token(token, ip_address)
>>> print result
{'ssn': '1234567890', 'ip_address': '1.1.1.1', 'name': u'Jon Jonsson'}
If an error occurs, the result from `generate_saml_from_token` will return a dictionary with the
key "error" with the body of the error as value, e.g.
>>> print result
{'error': 'HTTPError = 500'}
500 usually mean that you can make the request again immediately, just a glitch in the
webservice.
>>> print result
{'error': 'Unable to find SAML assertion from token.'}
"Unable to find SAML assertion from token" means that the token is invalid or expired somehow,
which means the user has to authenticate again.
Metadata
Release files for py-islykill 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py-islykill-0.1.tar.gz | 5.1 kB | Without provenance | Details for py-islykill-0.1.tar.gz |
Release files / py-islykill-0.1.tar.gz
| Download URL | py-islykill-0.1.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f976094d4b72e29183ae8b93e4f2fba2765cf09cfcf0dbf2018dbe4189526c39
|
|
BLAKE2b-256 checksum How to use checksums |
f49591c28a284d9088523a0c0e2f6bb7df881d9face85819ad83eafbfcbed154
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for py-islykill 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.