This directory contains extensions to the core go-authkit library functionality. Extensions are organized into sub-packages based on their purpose and scope.
The acronisext package provides Acronis-specific extensions for JWT claims and token introspection results.
Features include:
- Custom JWT claims extending the core
jwt.DefaultClaims - Standard structure for token introspection results
- Acronis-specific fields for authentication and authorization
See the acronisext README for more details.
When adding new extensions to the go-authkit library, follow these guidelines:
- Create a new subdirectory with a descriptive name (e.g.,
vendorextfor vendor-specific extensions) - Include a
doc.gofile with package documentation - Include a README.md file with usage examples
- Ensure comprehensive test coverage
- Update the main README.md to reference the new extension
When designing extensions, follow these principles:
- Compatibility: Extensions should enhance, not replace, core functionality
- Minimalism: Only include what's necessary for the specific extension purpose
- Documentation: Provide clear examples and use cases
- Test Coverage: Ensure all extension code is well-tested
- Standardization: Promote consistency across implementations