---
title: "Axum"
description: "1 posts about Axum, summarised, each linking to the original."
---

# Axum
> 1 posts about Axum, summarised, each linking to the original.

## Articles

### [Type-Safe Authentication in Rust with Auth0 and Axum](https://yomu.fyi/post/type-safe-authentication-in-rust-with-auth0-and-axum.md)
- Company: [Auth0](https://yomu.fyi/company/auth0.md)
- Author: Aniket Bhattacharyea
- Published: Aug 31, 2026

CLI applications cannot use a standard browser redirect OAuth login flow when no browser or redirect URL is available, so the tutorial uses OAuth 2.0 Device Authorization Flow. It builds an end-to-end Rust workspace containing a CLI, a shared auth-lib crate, and an Axum API configured with Auth0. The CLI requests a device code, displays a verification URL and user code, polls for an ID token and access token, then sends the access token as a Bearer credential. The API middleware fetches JWKS, selects the key matching the JWT’s kid, validates RS256 signatures plus issuer and audience claims, and deserializes strongly typed UserClaims. With valid claims, a protected route returns a message and subject; otherwise the extractor returns an unauthorized response.
