Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS-5044 - Add role-based auth to FAB #303

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wjrm500
Copy link
Contributor

@wjrm500 wjrm500 commented Feb 27, 2025

Ticket

Add role-based auth to FAB

Description

Users must be a member of the 'FSD_ADMIN' group in Azure AD to authenticate for FAB, as per TDA requirements.

@wjrm500 wjrm500 requested a review from gidsg February 27, 2025 18:02
@wjrm500 wjrm500 force-pushed the FS-5044_add-role-based-auth-to-fab branch from 0b1fb37 to 50a7408 Compare February 27, 2025 18:02
@@ -28,7 +28,9 @@ def protect_private_routes(flask_app: Flask) -> Flask:
if endpoint in PUBLIC_ROUTES:
continue
flask_app.view_functions[endpoint] = login_required(
check_internal_user(view_func), return_app=SupportedApp.FUND_APPLICATION_BUILDER
check_internal_user(view_func),
roles_required=["FSD_ADMIN"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cant we send this as a param of roles list ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants