Gloo Gateway provides multiple mechanisms to establish and validate client identity and enforce access control policies at the API Gateway level. Depending on your requirements for performance, complexity, and integration, you can choose from the following methods:
1. External Authentication (Ext Auth)
Available in Gloo Gateway Enterprise, the Ext Auth service allows for complex, multi-step authentication and authorization processes.
- Built-in Support: Authenticate with Identity Providers using LDAP or OIDC.
- Standard Methods: Supports Basic Auth and API Keys.
- Custom Logic: Includes a plugin framework to load and configure custom business logic for bespoke authentication protocols.
- Fine-grained Authorization: Supports Rego (via Open Policy Agent) for applying granular access policies.
- Chaining: Ext Auth configurations can be chained to perform sequential authentication and authorization steps.
2. JSON Web Tokens (JWT)
Use JWTs for high-performance authentication where Gloo Gateway validates a token from a trusted source.
- Performance: Verification is performed directly in Envoy, making it faster and more resource-efficient than remote calls to an external auth service.
- Mechanism: Gloo Gateway verifies the token signature and claims without necessarily performing an authentication handoff to an external provider.
3. Custom Authentication Services
For specialized requirements, you can develop and integrate your own custom authentication service directly with Gloo Gateway.