Package com.vortexsoftware.sdk.spring
Interface VortexConfig
public interface VortexConfig
Configuration interface for Vortex Spring integration
This interface allows applications to define how users are authenticated
and authorized for Vortex operations, matching the pattern from Express SDK.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classRepresents a user in the Vortex system Supports both new simplified format (userEmail + userIsAutoJoinAdmin) and legacy format (identifiers + groups + role) for backward compatibility. -
Method Summary
Modifier and TypeMethodDescriptionConvert the current request context to a Vortex user This should extract user information from the current HTTP request and return it in the format expected by Vortex JWT generation.booleanauthorizeOperation(String operation, VortexConfig.VortexUser user) Check if the current user can perform a specific operation
-
Method Details
-
authenticateUser
VortexConfig.VortexUser authenticateUser()Convert the current request context to a Vortex user This should extract user information from the current HTTP request and return it in the format expected by Vortex JWT generation.- Returns:
- VortexUser representation, or null if not authenticated
-
authorizeOperation
Check if the current user can perform a specific operation- Parameters:
operation- The operation being performed (JWT, GET_INVITATIONS, etc.)user- The authenticated user- Returns:
- true if authorized, false otherwise
-