Proxy Scope Validator
Component Detail
Service Layer
low complexity
mobile
0
Dependencies
2
Dependents
7
Entities
0
Integrations
Description
Client-side guard that verifies a coordinator is authorized to proxy-register on behalf of a given peer mentor before submission. Checks that the selected mentor belongs to the coordinator's local association. Prevents unauthorized cross-association proxy submissions at the UI layer, with final enforcement on the backend.
proxy-scope-validator
Responsibilities
- Validate that the selected peer mentor is within the coordinator's local association scope
- Block proxy submission and surface an error when scope check fails
- Cache coordinator scope data locally to avoid repeated API calls
Interfaces
canProxyForMentor(coordinatorId: string, mentorId: string): Promise<boolean>
getCoordinatorScope(coordinatorId: string): Promise<ScopeData>
clearScopeCache(coordinatorId: string): void
Relationships
Dependents (2)
Components that depend on this component
Related Data Entities (7)
Data entities managed by this component