manous/l5-swagger-auth
最新稳定版本:v1.0.3
Composer 安装命令:
composer require manous/l5-swagger-auth
包简介
Package d'authentification pour l5-swagger avec système de login sécurisé
README 文档
README
Package Laravel pour ajouter un système d'authentification sécurisé à l5-swagger.
Installation
1. Installer le package
composer require manous/l5-swagger-auth
2. Publier la configuration
php artisan vendor:publish --tag=manous-swagger-auth-config
3. Publier la vue override
php artisan vendor:publish --tag=manous-swagger-auth-override-view --force
Configuration rapide
Ajoutez dans votre .env :
SWAGGER_USERNAME=votre_username SWAGGER_PASSWORD=votre_password
C'est tout ! Votre documentation Swagger est maintenant protégée.
Fonctionnalités
- ✅ Authentification par identifiants
- ✅ Interface de connexion moderne
- ✅ Bouton de déconnexion intégré
- ✅ Compatible Laravel 9, 10 et 11
Personnalisation (optionnel)
Modifiez config/swagger-auth.php pour personnaliser :
- Les routes d'authentification
- Le style du bouton de déconnexion
- La redirection après authentification
Sécurité
⚠️ Recommandations importantes :
- Utilisez des mots de passe forts (minimum 12 caractères, mélange de lettres, chiffres et symboles)
- Utilisation de HTTPS uniquement
Licence
MIT
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-10