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

Task Group: Setup Authentication Frontend #1

Closed
13 of 18 tasks
Tracked by #5
TheTechArch opened this issue Sep 8, 2023 · 4 comments
Closed
13 of 18 tasks
Tracked by #5

Task Group: Setup Authentication Frontend #1

TheTechArch opened this issue Sep 8, 2023 · 4 comments
Labels
status/draft Status: When you create an issue before you have enough info to properly describe the issue.

Comments

@TheTechArch
Copy link
Member

TheTechArch commented Sep 8, 2023

Description

Altinn Authentication Frontend will use the same pattern as Altinn Access Management Frontend. Meaning

  • A SPA (Single Page App) frontend based on React
  • A Backend for Frontend based on .Net
  • Build and deploy pipelines in Github
  • Hosted as an Azure Container App

The following epic describes the different tasks to set up the basic structure for this architecture.

Tasks should be separated into separate issues when started on.

In scope

  • Setup Code
  • Setup tests
  • Setup pipelines for build and deploy
  • Setup infrastructure

Out of scope

  • Create functionality related to new functionality in Altinn Authentication

Additional Information

We need to think about handling scenarios where the user is not authenticated. This component is where we will add authentication for methods not available in ID-porten. Like Self authenticated user. How should we handle routes where we have some URL that require that the user is authenticated and other routes that should work when user is not authenticated?

Architecture Recommendation

TODO

Recommended Project Setup

Set up a new solution called Altinn.Authentication.UI with the following projects

  • Altinn.AuthenticationUI - .Net Core 7 API project
  • Altinn.Authentication.UI.Core - Core models and interfaces
  • Altinn.Authentication.UI.Integration - Clients to call
  • Altinn.Authentication.UI.Mocks - Mock implementation for clients to be used for testing
  • Altinn.Authentication.UI.Tests - .Net integration test of BFF

Where relevant, we should reuse integration code and API from Altinn.AccessManagment.UI

Database

Security

Infrastructure

Authentication Frontend

Preview Give feedback
  1. 4 of 4
    kind/feature-request
    Torgeir333

Authentication BFF

Preview Give feedback
  1. simen-rekkedal
  2. 21 of 25
    task/backend
    simen-rekkedal

Azure Infrastructure

Preview Give feedback
  1. 7 of 13
    acn-dgopa simen-rekkedal

CI/CD

Preview Give feedback
  1. simen-rekkedal

Test Automation

Preview Give feedback
@TheTechArch TheTechArch added the status/draft Status: When you create an issue before you have enough info to properly describe the issue. label Sep 8, 2023
@Torgeir333 Torgeir333 self-assigned this Sep 18, 2023
@Torgeir333 Torgeir333 removed their assignment Nov 3, 2023
@Torgeir333 Torgeir333 mentioned this issue Nov 3, 2023
4 tasks
@Torgeir333
Copy link
Contributor

Today a pipeline demonstrated several features of the Frontend repo, including:

  1. checkout of the entire repo to the Github Runner environment (set to ubuntu-22.04)

  2. installing of Frontend dependencies (yarn packages) in a working-directory

  3. the Cypress component tests were successfully run (yarn coverage)

  4. and the Vite build configuration was tested by the yarn build command (works locally, works in pipeline),
    producing a javascript bundle along with other assets (see screenshots below): this build is a pre-requisite for the "wrapping" of the React app by the dotnet BFF app etc...

See frontend_build_and_cypress.yaml file for details.

This experimental pipeline is only triggered by a push to the cypress8 branch
in order to limit noise.

@Torgeir333
Copy link
Contributor

Torgeir333 commented Nov 10, 2023

Summary of Github Runner build process:

GithubRunner_build_frontend_bundle_screenshot_101123

@Torgeir333
Copy link
Contributor

Torgeir333 commented Nov 10, 2023

Summary of Cypress component tests:

GithubRunner_runs_frontend_Cypress_component_tests_screenshot_101123

@Torgeir333
Copy link
Contributor

Torgeir333 commented Nov 10, 2023

Full Summary of pipeline run:

GithubRunner_Full_Overview_of_cypress8-branch-triggered-Run_101123

@simen-rekkedal simen-rekkedal changed the title Setup Authentication Frontend Epic: Setup Authentication Frontend Feb 6, 2024
@simen-rekkedal simen-rekkedal changed the title Epic: Setup Authentication Frontend Task Group: Setup Authentication Frontend Feb 6, 2024
@acn-dgopa acn-dgopa moved this to 👷In Progress in Team Tilgangsinfo May 7, 2024
@acn-dgopa acn-dgopa moved this from 👷In Progress to ✅ Done in Team Tilgangsinfo May 7, 2024
@acn-dgopa acn-dgopa reopened this May 7, 2024
@annerisbakk annerisbakk moved this from ✅ Done to ✅✅Closed in Team Tilgangsinfo Oct 24, 2024
@github-project-automation github-project-automation bot moved this from ✅✅Closed to ✅ Done in Team Tilgangsinfo Oct 25, 2024
@annerisbakk annerisbakk moved this from ✅ Done to ✅✅Closed in Team Tilgangsinfo Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/draft Status: When you create an issue before you have enough info to properly describe the issue.
Projects
Status: ✅✅Closed
Development

No branches or pull requests

4 participants