{"id":15077663,"url":"https://github.com/dimkinthepro/jwt-auth-bundle","last_synced_at":"2026-03-11T00:33:59.976Z","repository":{"id":193894455,"uuid":"689684659","full_name":"dimkinthepro/jwt-auth-bundle","owner":"dimkinthepro","description":"JWT authentication bundle for Symfony","archived":false,"fork":false,"pushed_at":"2024-09-02T16:25:21.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T07:23:25.964Z","etag":null,"topics":["jwt","jwt-auth","jwt-authentication","jwt-token","php81","symfony-bundle"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimkinthepro.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-09-10T15:36:23.000Z","updated_at":"2024-09-02T16:21:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"8f3da26e-58e1-4c6e-8cf6-28a3251b9c19","html_url":"https://github.com/dimkinthepro/jwt-auth-bundle","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"96a53edeaf9390c273d59bf38f36aa7d7b6d9266"},"previous_names":["dimkinthepro/jwt-auth-bundle"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimkinthepro%2Fjwt-auth-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimkinthepro%2Fjwt-auth-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimkinthepro%2Fjwt-auth-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimkinthepro%2Fjwt-auth-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimkinthepro","download_url":"https://codeload.github.com/dimkinthepro/jwt-auth-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239370681,"owners_count":19627471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["jwt","jwt-auth","jwt-authentication","jwt-token","php81","symfony-bundle"],"created_at":"2024-09-25T04:06:15.996Z","updated_at":"2025-11-02T03:30:29.942Z","avatar_url":"https://github.com/dimkinthepro.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JWT authentication bundle for Symfony\n\n### 1. Installation:\n```bash\ncomposer require dimkinthepro/jwt-auth-bundle\n```\n\n### 2. Check bundles config:\n```php\n# config/bundles.php\n\nreturn [\n#...\n    Dimkinthepro\\JwtAuth\\DimkintheproJwtAuthBundle::class =\u003e ['all' =\u003e true],\n];\n```\n\n### 3. Create bundle configuration:\n```yaml\n# config/packages/dimkinthepro_jwt_auth.yaml\ndimkinthepro_jwt_auth:\n    public_key_path: '%kernel.project_dir%/var/dimkinthepro/jwt-auth-bundle/public.pem'\n    private_key_path: '%kernel.project_dir%/var/dimkinthepro/jwt-auth-bundle/private.pem'\n    passphrase: 'SomeRandomPassPhrase'\n    token_ttl: 36000 # 10 hour\n    algorithm: 'RS512'\n    refresh_token_ttl: 2592000 # 1 month\n    refresh_token_length: 128 # max=255\n```\n\n### 4. Add security configuration\n```yaml\n# config/packages/security.yaml\n\nsecurity:\n  #...\n  main:\n      lazy: true\n      auth_jwt: ~\n      pattern: ^/api/\n      stateless: true\n      provider: your_app_user_provider\n      json_login:\n          check_path: /api/user/login\n          username_path: email\n          success_handler: Dimkinthepro\\JwtAuth\\Infrastructure\\Security\\SuccessAuthenticationHandler\n          failure_handler: Dimkinthepro\\JwtAuth\\Infrastructure\\Security\\FailAuthenticationHandler\n```\n\n### 5. Add doctrine configuration\n```yaml\n# config/packages/doctrine.yaml\ndoctrine:\n    #...\n    orm:\n        #...\n        mappings:\n            #...\n            DimkintheproJwtAuthBundle:\n                is_bundle: true\n                type: xml\n                prefix: Dimkinthepro\\JwtAuth\\Domain\\Entity\n```\n\n### 6. Add Routes\n```yaml\n# config/routes.yaml\napi_login:\n  path: /api/login\n  methods: [POST]\n\napi_token_refresh:\n  path: /api/token-refresh\n  controller: Dimkinthepro\\JwtAuth\\Infrastructure\\Controller\\TokenRefreshAction\n  methods: [POST]\n```\n\n### 7. Generate migrations:\n```bash\nphp bin/console doctrine:migrations:diff\n\nphp bin/console doctrine:migrations:migrate\n```\n\n### 8. Generate key pair:\n```bash\nphp bin/console dimkinthepro:jwt-auth:generate-key-pair\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimkinthepro%2Fjwt-auth-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimkinthepro%2Fjwt-auth-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimkinthepro%2Fjwt-auth-bundle/lists"}