salvo-auth

Authenticate and authorize Salvo apps with JWT, Basic Auth, API keys, sessions, and custom schemes.

20|5|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/salvo-rs/salvo-skills --skill salvo-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: salvo-auth
Source: https://github.com/salvo-rs/salvo-skills/tree/main/skills/salvo-auth
Command: npx skills add https://github.com/salvo-rs/salvo-skills --skill salvo-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Secures Salvo applications by providing authentication and authorization mechanisms (JWT, Basic Auth, and custom schemes) to protect API endpoints and manage user access.

Core Features & Use Cases

  • JWT-based authentication and token validation
  • Basic authentication and custom middleware
  • Session and API key support, plus RBAC checks
  • Protected routes and access control for user management

Quick Start

Configure a JwtAuth or BasicAuth middleware and apply it to protected routes to secure your API.

Frequently Asked Questions about salvo-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add JWT authentication to a Salvo web application?

Configure the JwtAuth middleware and apply it to your protected routes to validate tokens and manage user access for your RESTful API endpoints.

What is the best way to implement role-based access control in a Salvo microservice?

The best way to implement role-based access control in a Salvo microservice is to use middleware guards that verify user roles during the authorization process. This protects API endpoints by restricting access based on permissions.

Can I use custom authentication schemes and API keys with Salvo?

Yes, you can use custom authentication schemes and API keys with Salvo. The framework supports pluggable validators, allowing you to implement custom middleware to authenticate and authorize access to your API endpoints.

How do I secure API endpoints with Basic Auth in a Salvo application?

To secure API endpoints with Basic Auth in a Salvo application, configure the BasicAuth middleware and attach it to the specific routes you want to protect. This validates user credentials before granting access.

Does Salvo support session-based authentication for user management?

Yes, Salvo supports session-based authentication alongside JWT and API key schemes. You can apply these authentication mechanisms to protect routes and manage user access across your RESTful services and microservices.