Skip to content

core: Mark impersonation reason field as required in UI and fix status codes #16065

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dominic-r
Copy link
Contributor

@dominic-r dominic-r commented Aug 11, 2025

Signed-off-by: Dominic R dominic@sdko.org
Closes: #15991

Updates the Impersonation modal to have the reason field marked as mandatory when necessary as well as updating the API to return a 400 by raising a validationerror when the reason is not set and the tenant requires an impersonation reason.

Copy link

netlify bot commented Aug 11, 2025

Deploy Preview for authentik-integrations canceled.

Name Link
🔨 Latest commit b8b94d5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/68a3baa1f275470008a13808

Copy link

netlify bot commented Aug 11, 2025

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit b8b94d5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/68a3baa1ecf95400084a12d9
😎 Deploy Preview https://deploy-preview-16065--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dominic-r dominic-r force-pushed the sdko/impersonation-diag branch from e9a1879 to f671fb7 Compare August 11, 2025 01:33
Copy link

netlify bot commented Aug 11, 2025

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit ac73fe8
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6899483fc9dfc700088b1b57
😎 Deploy Preview https://deploy-preview-16065--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented Aug 11, 2025

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit b8b94d5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/68a3baa1ee2cdd00080e3533
😎 Deploy Preview https://deploy-preview-16065--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@BeryJu BeryJu changed the title impersonation: Mark field as required in UI and return 400 core: Mark impersonation reason field as required in UI and fix status codes Aug 11, 2025
@dominic-r dominic-r force-pushed the sdko/impersonation-diag branch from f671fb7 to b8b94d5 Compare August 18, 2025 23:43
@dominic-r dominic-r requested a review from BeryJu August 18, 2025 23:43
@dominic-r dominic-r marked this pull request as ready for review August 18, 2025 23:43
@dominic-r dominic-r requested review from a team as code owners August 18, 2025 23:43
Copy link

codecov bot commented Aug 18, 2025

Codecov Report

❌ Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 92.72%. Comparing base (9145d55) to head (b8b94d5).

Files with missing lines Patch % Lines
authentik/core/api/users.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16065      +/-   ##
==========================================
+ Coverage   92.39%   92.72%   +0.33%     
==========================================
  Files         837      837              
  Lines       45244    45244              
==========================================
+ Hits        41802    41954     +152     
+ Misses       3442     3290     -152     
Flag Coverage Δ
e2e 46.64% <0.00%> (+2.93%) ⬆️
integration 23.49% <0.00%> (-0.06%) ⬇️
unit 90.92% <83.33%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

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.

Mandatory impersonation reason, but missing star and bad HTTP status
2 participants