Skip to main content

BuildStatus PyPI Version Active branch

Python Knox Access token - Helper (PyKATh)

This is not an offical Samsung library or repository

A colleciton of python code that assists in the creation of a signed access token to be used with the Samsung Knox Cloud Service 'KCS' APIs.
For more information on the flow of Samsung's Knox Cloud Authentication API - see their tutorial here: (https://docs.samsungknox.com/dev/knox-cloud-authentication/tutorial/tutorial-for-customers-generate-access-token/)

Currently supported KCS APIs

This library can generate signed Tokens for the following Samsung KC Services:

  • Knox Mobile Enrollment ('KME')
  • Knox Conifgure ('KC')
  • Knox E-FOTA ('KE1')
  • Knox Asset Intelligence ('KAI')
  • Knox Guard ('KG')
  • Knox Deployment Program ('KDP')

Todo

  • Knox Manage ('KM') is currently not supported, but work is in progress.

Prerequesits

pip install PyKATh requests

Getting Started

## Initialize the Knox Token Library. 
kat = knox_common.KnoxAccessToken(kcsKeyFilePath = 'keys.json', regionalServer = 'us-kcs-api.samsungknox.com', clientId = cId)

## request a signed token for a specific KCS ClientId.
signedKCSToken = kat.getSignedAccessToken()

## Use this balue in the 'x-knox-apitoken' header to call most KCSAPis (for 30mins) in the
print(signedKCSToken) 

TODO

  • docs
  • KM API Helper
  • create API examples for each service

Metadata

Release files for PyKATh 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyKATh 0.1.2
File Size Uploaded Provenance Actions
PyKATh-0.1.2.tar.gz 4.2 kB Without provenance Details for PyKATh-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PyKATh 0.1.2
File Interpreter ABI Platform Actions
PyKATh-0.1.2-py3-none-any.whl Python 3 none any Details for PyKATh-0.1.2-py3-none-any.whl

Total release size: 8.5 kB

Release files / PyKATh-0.1.2.tar.gz

Download URL PyKATh-0.1.2.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
158f58c114c067b70fc689de87fd9d2b42e9a9f3bf4e8aa5c21c13ea12be4e03
BLAKE2b-256 checksum
How to use checksums
de2b040b70c4c71895e7ca440f4e0dd8bc2d00232736118bf3b728d11f41a6ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / PyKATh-0.1.2-py3-none-any.whl

Download URL PyKATh-0.1.2-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6741b8737c05a5a50f987d5ece3d318a826439cf65a152a58bd285c30f9f2a36
BLAKE2b-256 checksum
How to use checksums
4d50654ccbdb686bd39f004e1c4a278ee77bc2eac598e0f895fde420bd33ba1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for PyKATh 0.1.2

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.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page