{"id":50690889,"url":"https://github.com/blitz-php/vollmacht","last_synced_at":"2026-06-09T02:35:54.392Z","repository":{"id":352693119,"uuid":"1210666556","full_name":"blitz-php/vollmacht","owner":"blitz-php","description":"Serveur OAuth2 officiel de BlitzPHP","archived":false,"fork":false,"pushed_at":"2026-04-20T17:44:10.000Z","size":97,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-20T19:36:23.797Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blitz-php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-14T16:31:42.000Z","updated_at":"2026-04-20T17:44:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/blitz-php/vollmacht","commit_stats":null,"previous_names":["blitz-php/vollmacht"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/blitz-php/vollmacht","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blitz-php%2Fvollmacht","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blitz-php%2Fvollmacht/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blitz-php%2Fvollmacht/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blitz-php%2Fvollmacht/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blitz-php","download_url":"https://codeload.github.com/blitz-php/vollmacht/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blitz-php%2Fvollmacht/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34089328,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-09T02:35:53.708Z","updated_at":"2026-06-09T02:35:54.380Z","avatar_url":"https://github.com/blitz-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BlitzPHP Vollmacht\n\n[![PHP Version](https://img.shields.io/badge/php-^8.2-blue)](https://php.net)\n[![Latest Version](https://img.shields.io/github/v/release/blitz-php/vollmacht)](https://github.com/blitz-php/vollmacht/releases)\n[![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)\n\n**Vollmacht** est le serveur OAuth2 officiel pour l'écosystème [BlitzPHP](https://github.com/blitz-php/framework).\n\n\u003e *Vollmacht* signifie **\"Procuration\"** ou **\"Mandat\"** en allemand. Fidèle à son nom, cette bibliothèque permet à vos utilisateurs de délivrer une procuration sécurisée à des applications tierces pour accéder à leurs ressources, sans jamais exposer leurs identifiants.\n\n## Fonctionnalités\n\n- **Serveur OAuth2 complet** : Implémente les standards `authorization_code`, `client_credentials`, `password`, `refresh_token` et `implicit`.\n- **Intégration native avec [Schild](https://github.com/blitz-php/schild)** : Utilise les utilisateurs, groupes et permissions de Schild. Aucune duplication.\n- **Cli API First** : Générez des clients OAuth via l'interface en ligne de commande `klinge`.\n- **Scopes Dynamiques** : Définissez et vérifiez des scopes pour granulariser les accès.\n- **Middleware Prêt à l'emploi** : Protégez vos routes API avec `vollmacht:auth`.\n- **JWT ou Base de données** : Choisissez entre des tokens opaques (stockés en DB) ou des JWT signés.\n\n## Installation\n\nVia Composer :\n\n```bash\ncomposer require blitz-php/vollmacht\n```\n\nPuis, publiez la configuration et les migrations :\n\n```bash\nphp klinge vollmacht:publish\nphp klinge migrate\n```\n\nGénérez les clés de chiffrement nécessaires au serveur OAuth :\n\n```bash\nphp klinge vollmacht:keys\n```\n\n## Démarrage Rapide\n\n### 1. Ajoutez le Trait à votre Modèle Utilisateur\n\nPour que vos utilisateurs puissent créer des tokens personnels, ajoutez le trait `HasApiTokens` à votre `User` entity :\n\n```php\n\u003c?php\n\nnamespace App\\Entities;\n\nuse BlitzPHP\\Schild\\Entities\\User as SchildUser;\nuse BlitzPHP\\Vollmacht\\Traits\\HasApiTokens;\n\nclass User extends SchildUser\n{\n    use HasApiTokens;\n}\n```\n\n### 2. Protégez une Route API\n\nDans votre fichier `app/Config/Routes.php` :\n\n```php\n$router-\u003egroup('/api', ['middleware' =\u003e 'vollmacht:auth'], function($router) {\n    $router-\u003eget('user', 'Api\\UserController::profile');\n});\n```\n\n### 3. Créez un Client OAuth\n\n```bash\nphp klinge vollmacht:client --name=\"Mon Application Mobile\" --redirect_uri=\"myapp://callback\"\n```\n\n## Tests\n\n```bash\ncomposer test\n```\n\n## Contribution\n\nLes contributions sont les bienvenues ! Veuillez consulter le [Guide de Contribution](CONTRIBUTING.md) et vous assurer que vos modifications passent les tests et l'analyse statique.\n\n```bash\ncomposer ci\n```\n\n## Licence\n\nCe projet est sous licence MIT. Voir le fichier [LICENSE](LICENSE) pour plus de détails.\n\n## Crédits\n\n- **Auteur** : Dimitri Sitchet Tomkeu\n- **Inspiration** : [Laravel Passport](https://github.com/laravel/passport) \u0026 [league/oauth2-server](https://github.com/thephpleague/oauth2-server)\n\n---\n\n*\"Donner procuration, c'est faire confiance. Vollmacht rend cette confiance sécurisée.\"*\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblitz-php%2Fvollmacht","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblitz-php%2Fvollmacht","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblitz-php%2Fvollmacht/lists"}