Budi Setiawan
|
ece7b314a4
|
feat: implement Service Tokens for microservice Bearer token management
- Add migration: create service_tokens table (UUID PK, name, service, token_prefix, token_hash, is_active, expires_at, created_by, last_used_at)
- Add Model: ServiceToken with generate(), verify(), active/expired scopes
- Add Service: ServiceTokenService with full CRUD + audit log integration
- Add API Controller: GET/POST/DELETE /api/v1/service-tokens/* (9 endpoints)
- Update ApiClientController: add web actions (store/revoke/regenerate/delete)
- Update routes/api.php: register service token REST endpoints
- Update routes/web.php: register service token web routes
- Update api-clients/index.blade.php: add Create form + Service Tokens table with Regenerate/Revoke/Delete actions
- Update context-index.md: document Service Tokens architecture, schema, endpoints
- Update perintah.md: sync log
Zero impact on existing GeoNetAgent agents (separate geonetagent_dev database).
|
3 weeks ago |