stackure 1.20261012.88

Official Stackure authentication SDK for Rust
Documentation

Stackure Rust SDK

Check build crates.io docs.rs License: MIT

Add Stackure sign-in to axum, tonic and hyper with tower middleware.

Install

[dependencies]
stackure = "1"

Needs Rust 1.85 or later.

Example

Set STACKURE_APP_ID and STACKURE_APP_SECRET from the app's page in Stackure, then add the layer:

use axum::{Extension, Router, routing::get};
use stackure::User;

async fn admin(Extension(user): Extension<User>) -> String {
    user.user_email
}

let app = Router::new()
    .route("/admin", get(admin))
    .layer(stackure::auth());

Documentation

Configuration, sign-in handoff, MCP, sign-out, errors and limits: stackure.com/docs/rust

License

MIT