You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DCA-9: Implement JWT-Based Access Control for Content Spaces
Description
Implement JWT-based access control for Content Spaces, focusing on secure JWT construction and access scoping. Modify the current JWT generation process to include content-specific access rights, and integrate these changes with the Bytescale API. Ensure role-based access in the back-office and content-specific access in the web platform.
Tasks
JWT Settings Modification:
Move JWT access settings from the Next Auth JWT construction to the respective API routes (/api/bytescale/jwt/route.ts) in both web and back-office platforms.
Back-Office Access Control:
In the back-office, use the current role from the JWT cookie to construct access authorization for the organizer space.
Web Platform Access Control:
In the web platform, construct access rights for user spaces as currently done.
Modify the route to take an argument for granting access to a specific Content Space, scoping the access to read rights for that folder within the given organizer.
Verify user access based on NFT ownership using existing methods.
Integration with Bytescale:
Provide the modified route to Bytescale for accessing content in Content Spaces.
Regression Testing:
Conduct thorough testing on both web and back-office platforms to ensure there are no regressions, especially where Bytescale is used.
Acceptance Criteria
Secure JWT Construction: JWTs are constructed securely with appropriate access settings for each platform.
Role-Based Access in Back-Office: The back-office JWT correctly reflects the user's role and grants corresponding access to the organizer space.
Content-Specific Access in Web Platform: The web platform JWT grants access to specific Content Spaces, with rights scoped to read-only for the relevant folder.
Correct Integration with Bytescale: The integration with Bytescale allows for the appropriate access to Content Spaces based on the modified JWTs.
No Regression Issues: Ensure that the changes do not cause any regression issues in existing functionalities.
Notes
Prioritize security and correctness in the JWT construction process.
Ensure that access control mechanisms are robust and thoroughly tested.
Maintain compatibility with existing Bytescale integrations and functionalities.
The text was updated successfully, but these errors were encountered:
DCA-9: Implement JWT-Based Access Control for Content Spaces
Description
Implement JWT-based access control for Content Spaces, focusing on secure JWT construction and access scoping. Modify the current JWT generation process to include content-specific access rights, and integrate these changes with the Bytescale API. Ensure role-based access in the back-office and content-specific access in the web platform.
Tasks
/api/bytescale/jwt/route.ts
) in both web and back-office platforms.Acceptance Criteria
Notes
The text was updated successfully, but these errors were encountered: