Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #376 from communitiesuk/FS-4805_FAB-authentication
Browse files Browse the repository at this point in the history
FS-4805 - Add FAB and Form Designer to the list of safe return apps
  • Loading branch information
wjrm500 authored Dec 11, 2024
2 parents 5f6d78d + 3ba0ec6 commit d3dcb8d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
16 changes: 16 additions & 0 deletions config/envs/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ class DefaultConfig(object):
# Post-award submit
POST_AWARD_SUBMIT_HOST = environ.get("POST_AWARD_SUBMIT_HOST", "")

# Form Designer
FORM_DESIGNER_HOST = environ.get("FORM_DESIGNER_HOST", "")

# Fund Application Builder
FUND_APPLICATION_BUILDER_HOST = environ.get("FUND_APPLICATION_BUILDER_HOST", "")

# Safe list of return applications
SAFE_RETURN_APPS = {
SupportedApp.POST_AWARD_FRONTEND.value: SafeAppConfig(
Expand All @@ -130,6 +136,16 @@ class DefaultConfig(object):
logout_endpoint="sso_bp.signed_out",
service_title="Submit monitoring and evaluation data",
),
SupportedApp.FORM_DESIGNER.value: SafeAppConfig(
login_url=urljoin(FORM_DESIGNER_HOST, "/"),
logout_endpoint="sso_bp.signed_out",
service_title="Form Designer",
),
SupportedApp.FUND_APPLICATION_BUILDER.value: SafeAppConfig(
login_url=urljoin(FUND_APPLICATION_BUILDER_HOST, "/"),
logout_endpoint="sso_bp.signed_out",
service_title="Fund Application Builder",
),
}

"""
Expand Down
2 changes: 2 additions & 0 deletions copilot/fsd-authenticator/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ variables:
POST_AWARD_SUBMIT_HOST: "https://submit-monitoring-data.${COPILOT_ENVIRONMENT_NAME}.access-funding.test.levellingup.gov.uk"
APPLICANT_FRONTEND_HOST: "https://frontend.${COPILOT_ENVIRONMENT_NAME}.access-funding.test.levellingup.gov.uk"
ASSESSMENT_FRONTEND_HOST: "https://assessment.${COPILOT_ENVIRONMENT_NAME}.access-funding.test.levellingup.gov.uk"
FORM_DESIGNER_HOST: "https://form-designer.${COPILOT_ENVIRONMENT_NAME}.access-funding.test.levellingup.gov.uk"
FUND_APPLICATION_BUILDER_HOST: "https://fund-application-builder.${COPILOT_ENVIRONMENT_NAME}.access-funding.test.levellingup.gov.uk"
FLASK_ENV: "${COPILOT_ENVIRONMENT_NAME}"
COOKIE_DOMAIN: ".test.levellingup.gov.uk"
ALLOW_ASSESSMENT_LOGIN_VIA_MAGIC_LINK: false
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies = [
"flask-talisman==0.8.1",
"flask-wtf==1.2.2",
"flask==2.2.5",
"funding-service-design-utils==5.1.8",
"funding-service-design-utils==5.2.0",
"govuk-frontend-jinja==2.3.0",
"greenlet==3.1.1",
"jsmin==3.0.1",
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d3dcb8d

Please sign in to comment.