Something went wrong. Try again.
Rust SDK for the TransitionsAg OIDC provider — "open sesame".
Something went wrong. Try again.
Files
Verified signature Signed by shyrogan.fr SHA256:OTKZCxMfLRtulXhty2T9QYzgtY6s9t4mrq2D2h7CMLc Click to copy SHA
Verified signature Signed by shyrogan.fr SHA256:OTKZCxMfLRtulXhty2T9QYzgtY6s9t4mrq2D2h7CMLc Click to copy SHA
Verified signature Signed by shyrogan.fr SHA256:OTKZCxMfLRtulXhty2T9QYzgtY6s9t4mrq2D2h7CMLc Click to copy SHA
- Rust 98%
- Nix 2%
README.md
# sesame
Rust SDK for the TransitionsAg OIDC provider — "open sesame".
- **`tag_sesame`** — the provider's wire contract as plain serde types: the `/userinfo`
response with its `profile` claim, the ID- and access-token JWT payloads, and the
token-endpoint error codes. No I/O.
- **`tag_sesame_client`** — the relying-party login flow on top of
[openidconnect](https://docs.rs/openidconnect): authorization-code + PKCE (S256),
refresh, typed `/userinfo`, RP-initiated logout, revocation, and the receiving end
of the provider's profile-update webhooks. Re-exports `tag_sesame`. No web
framework dependency.
- **`tag_sesame_axum`** — axum extractors and HTTP responses for the client,
including `OpenIdConnect` and `WebhookPayload`.
- `tag_sesame_server` — reserved: resource-server-side access-token validation, once an
app needs to guard APIs without calling `/userinfo`.
Consume from crates.io:
```toml
tag_sesame_client = "0.11.0"
tag_sesame_axum = { version = "0.11.0", features = ["aide"] }
```
**For Axum applications, we recommend enabling `aide`.** It is the maintained
documentation integration, enables schemars support transitively, and derives
OpenAPI request bodies, responses, authentication requirements, and component
schemas from the actual handler types. This keeps the documented contract in
sync with the application without separate endpoint annotations.
## Features
The core crates default to no features; `tag_sesame_axum` is the opt-in Axum
integration crate. Documentation backends are also opt-in, with `aide` as the
recommended backend.
| feature | on | status | adds |
| --- | --- | --- | --- |
| `schemars` | all crates | **maintained** | `JsonSchema` on wire types and the client types that carry them |
| `billing` | all crates | **maintained** | Payment wire types (`Payment` over both legs, `CreatePayment`, `CreateCharge`, billing webhook events), the billing client, and the billing webhook extractor |
| `aide` | `tag_sesame_axum` | **maintained** | Type-driven request bodies, success/err…