SSH signature token service for Swarmauri
Project description
swarmauri_tokens_sshsig
An SSH signature token service for the Swarmauri framework. This service implements minting and verifying tokens signed with SSH-compatible algorithms such as Ed25519 and ECDSA P-256.
Features
- Mint and verify compact
SSHSIGtokens - Supports
ssh-ed25519andecdsa-sha2-nistp256 - Integrates with the Swarmauri token management framework
Installation
pip install swarmauri_tokens_sshsig
Usage
from swarmauri_tokens_sshsig import SshSigTokenService
from swarmauri_core.key_providers import IKeyProvider
key_provider: IKeyProvider = ... # Provide an implementation of IKeyProvider
svc = SshSigTokenService(key_provider, default_issuer="example.com")
token = await svc.mint({"sub": "alice"}, alg="ssh-ed25519", kid="ed1")
claims = await svc.verify(token, issuer="example.com")
The token format uses a compact three-part structure similar to JWT but relies on SSH signature algorithms. The payload is encoded as deterministic JSON and bound to a namespace before signing, providing interoperability with existing SSH key infrastructures.
Want to help?
If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing that will help you get started.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swarmauri_tokens_sshsig-0.3.0.dev32.tar.gz.
File metadata
- Download URL: swarmauri_tokens_sshsig-0.3.0.dev32.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d92c5701b713440c0f66564bfd83196b8057a68ee9b6b6c9b70afcfae6087a98
|
|
| MD5 |
47cb05816224c942956cbbd003188601
|
|
| BLAKE2b-256 |
30c157efe23a8e1aff953e0082a5cd64d2094b7701bed4938b1957f6cffaf517
|
File details
Details for the file swarmauri_tokens_sshsig-0.3.0.dev32-py3-none-any.whl.
File metadata
- Download URL: swarmauri_tokens_sshsig-0.3.0.dev32-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aaa1e7b55756e3b5a278f7e2f6d75ebad9c74aa28487d8ae856698b2c979d29e
|
|
| MD5 |
af51ac5532adbba305d6abd7507e0616
|
|
| BLAKE2b-256 |
b5ccaf08f6704c9dddfae135492d54deb684e591047109d74be7985102311a00
|