libmytoken
A python library for interacting with a mytoken server.
This is the very first alpha version of the library, which currently only supports obtaining OpenID Connect access tokens from a mytoken.
Usage
import libmytoken
at = libmytoken.get_access_token_from_jwt_mytoken(mytoken)
mytoken_server = libmytoken.MytokenServer("https://mytoken.data.kit.edu")
at = mytoken_server.AccessToken.get(mytoken)
full_response = mytoken_server.AccessToken.api_get(mytoken)
Error Handling
The library will raise an exception of type MytokenError if something goes wrong.
Error Handling can be done the following way:
try:
print(libmytoken.get_access_token_from_jwt_mytoken(mytoken))
except libmytoken.MytokenError as e:
print("ERROR mytoken: {}".format(e))
Installation
pip install libmytoken
License
libmytoken is provided under the MIT License.
Metadata
Release files for libmytoken 0.1.0
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 |
|---|---|---|---|---|
| libmytoken-0.1.0.tar.gz | 3.9 kB | Without provenance | Details for libmytoken-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| libmytoken-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for libmytoken-0.1.0-py3-none-any.whl |
Total release size: 8.8 kB
Release files / libmytoken-0.1.0.tar.gz
| Download URL | libmytoken-0.1.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b6b1735928abfe686349424a235885ab762244a06fb2a60bcbfe14639233efe
|
|
BLAKE2b-256 checksum How to use checksums |
0dfa1f38147f3300e8181c818acede582959196b1f664c402e7247623e79fdc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / libmytoken-0.1.0-py3-none-any.whl
| Download URL | libmytoken-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
082d3d25ca7a4059ee31517eb3f5f87b4e6c6abb0232e48da08e385b61ee0279
|
|
BLAKE2b-256 checksum How to use checksums |
ba74ee6c82ab06ca6a2864b812f3641a04ad8f81d253be3d1f17b7628b835200
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for libmytoken 0.1.0
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.