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

feat(keycloak authentication) #4162

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
Draft

feat(keycloak authentication) #4162

wants to merge 14 commits into from

Conversation

ChrOertlin
Copy link
Contributor

@ChrOertlin ChrOertlin commented Jan 28, 2025

Description

Implements keycloak as authirsation and verification provider for CG

Added

  • AuthenticationService
    Handles logic pertaining to authentication and token verification of users

  • UserService
    handles fetching of users from the database - introduced to reduce coupling of database to endpoints

  • New endpoints:
    auth/login
    auth/callback
    auth/logout

  • New config settings in the Flask AppConfig to initiate the authentication service

Changed

  • Moved app.route("/") to its own blueprint to cleanup the _register_blueprint() function. Increased code clarity

  • Removed google oauth flow from front end

Fixed

How to prepare for test

  • Ssh to relevant server (depending on type of change)
  • Use stage: us
  • Paxa the environment: paxa
  • Install on stage (example for Hasta):
    bash /home/proj/production/servers/resources/hasta.scilifelab.se/update-tool-stage.sh -e S_cg -t cg -b [THIS-BRANCH-NAME] -a

How to test

  • Do ...

Expected test outcome

  • Check that ...
  • Take a screenshot and attach or copy/paste the output.

Review

  • Tests executed by
  • "Merge and deploy" approved by
    Thanks for filling in who performed the code review and the test!

This version is a

  • MAJOR - when you make incompatible API changes
  • MINOR - when you add functionality in a backwards compatible manner
  • PATCH - when you make backwards compatible bug fixes or documentation/instructions

Implementation Plan

  • Document in ...
  • Deploy this branch on ...
  • Inform to ...

Copy link

sonarqubecloud bot commented Feb 6, 2025

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