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

HP-2491 | return kc_action_status from Keycloak on authentication #314

Merged
merged 2 commits into from
Aug 8, 2024

Conversation

charn
Copy link
Contributor

@charn charn commented Aug 7, 2024

kc_action_status is used to indicate e.g. whether a requested password change was successful or not. It will be returned
from tunnistamo along with code and state to the callback url the same way keycloak does it. This should make a later
transtition to keycloak (by dropping tunnistamo from the middle) not require extra work for any logic using kc_action_status.

Upon login the kc_action_status is saved to the session from which it is then retrieved in TunnistamoAuthorizeEndpoint.

@charn charn requested a review from a team August 7, 2024 06:16
Copy link

codecov bot commented Aug 7, 2024

Codecov Report

Attention: Patch coverage is 94.44444% with 1 line in your changes missing coverage. Please review.

Project coverage is 80.44%. Comparing base (1edf3ae) to head (f26f601).

Files Patch % Lines
users/pipeline.py 88.88% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #314      +/-   ##
===========================================
+ Coverage    80.36%   80.44%   +0.07%     
===========================================
  Files           91       91              
  Lines         3789     3804      +15     
===========================================
+ Hits          3045     3060      +15     
  Misses         744      744              

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

@charn charn force-pushed the HP-2491-kc-action-status branch 2 times, most recently from 6f2779f to 6b784c9 Compare August 7, 2024 09:25
@charn charn requested a review from danipran August 7, 2024 09:26
kc_action_status is used to indicate e.g. whether a requested
password change was successful or not. It will be returned
from tunnistamo along with code and state to the callback url
the same way keycloak does it. This should make a later
transtition to keycloak (by dropping tunnistamo from the middle)
not require extra work for any logic using kc_action_status.

Upon login the kc_action_status is saved to the session from
which it is then retrieved in TunnistamoAuthorizeEndpoint.

Refs: HP-2491
Copy link

sonarcloud bot commented Aug 7, 2024

Copy link

@danipran danipran left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

@charn charn merged commit 72d0cbf into develop Aug 8, 2024
5 checks passed
@charn charn deleted the HP-2491-kc-action-status branch August 8, 2024 07:07
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