Skip to content

feat(api): adds automatic keycloak verification#12

Open
Matt-Carre wants to merge 8 commits into
mainfrom
keycloak_auth
Open

feat(api): adds automatic keycloak verification#12
Matt-Carre wants to merge 8 commits into
mainfrom
keycloak_auth

Conversation

@Matt-Carre

Copy link
Copy Markdown
Collaborator

Adds keycloak verification to the graphql file

@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b0bb15c) to head (5deb6fa).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #12   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         5    +2     
  Lines           22        75   +53     
=========================================
+ Hits            22        75   +53     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Matt-Carre Matt-Carre force-pushed the keycloak_auth branch 5 times, most recently from 384fc4a to ba92fc2 Compare June 29, 2026 13:35
@Matt-Carre

Matt-Carre commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator Author

Not entirely sure how to test the "_open_auth_url" portion of the "return_key" function. Do you guys have any ideas?

In the mean time, once this and the previous PR are approved, this will be moved to the auth folder, and will also delete the old get_token.py file.

Comment thread src/python_interface_to_workflows/keycloak_checker.py Outdated
Comment thread src/python_interface_to_workflows/keycloak_checker.py Outdated
Comment thread pyproject.toml Outdated
@Matt-Carre Matt-Carre force-pushed the keycloak_auth branch 2 times, most recently from c64c654 to 0b40e38 Compare June 30, 2026 15:38
@Matt-Carre Matt-Carre force-pushed the keycloak_auth branch 2 times, most recently from cc86dad to 7fe2f72 Compare June 30, 2026 16:02
@Matt-Carre Matt-Carre force-pushed the keycloak_auth branch 6 times, most recently from f184967 to 47bccfa Compare July 1, 2026 11:21

@JamesDoingStuff JamesDoingStuff left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good work with the tests 👍 What's the process for using this auth mechanism? Or is that to come in future? I tried running a print(return_key(True)) but I only seem to get Client not found from keycloak

Comment thread notes
Comment thread src/python_interface_to_workflows/auth/keycloak_checker.py Outdated
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.

3 participants