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 | |
|---|---|---|---|
| libmytoken-0.1.0.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| libmytoken-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
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
|