Pig is an RBAC permission management system built on Spring Cloud, Spring Boot, and OAuth2 that supports both microservice and monolithic architectures.
The system addresses enterprise application needs for centralized authentication and authorization by implementing OAuth2 through Spring Authorization Server, supporting standard flows including authorization code, password, and token refresh scenarios. It provides a gateway layer, user permission management, monitoring capabilities, code generation, and scheduled task execution. The platform offers two deployment modes: a microservice architecture coordinated through Nacos service discovery, and a single-process monolithic mode, both accessible through a unified gateway interface. Docker Compose orchestration enables rapid local environment setup with MySQL, Redis, Nacos, and application services.
Organizations should choose this tool if they need a production-ready authentication and authorization foundation for Java-based applications at enterprise scale. It suits teams building new systems who want to avoid implementing OAuth2 infrastructure from scratch, or those migrating from custom permission systems. The open-source version retains core capabilities including authentication, gateway routing, user permissions, monitoring, and code generation, while commercial extensions add multi-tenancy, data-level permissions, workflow engines, and reporting features. The project provides complete deployment and development documentation covering environment configuration, service startup, frontend setup, and both microservice and monolithic deployment patterns.
Development activity shows consistent maintenance with regular updates to core dependencies and framework versions. The project accepts community contributions through pull requests against the active development branch and maintains an issue tracker for bug reports and feature requests. Code contributions follow Spring Java Format standards, with tooling provided for automated formatting validation.