-
Notifications
You must be signed in to change notification settings - Fork 189
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
fix impersonated request user mismatch #10550
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
usual nitpicking...
changelog/unreleased/fix-auth-app.md
Outdated
@@ -0,0 +1,6 @@ | |||
Bugfix: Fix impersonated request user mismatch | |||
|
|||
We fixed a user id and mane mismatch in the impersonated auth-app API request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We fixed a user id and mane mismatch in the impersonated auth-app API request | |
We fixed a user id and name mismatch in the impersonated auth-app API request |
if err != nil { | ||
sublog.Error().Err(err).Msg("error authenticating user") | ||
if strings.Contains(err.Error(), "requested user does not match") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use a dedicated error type if you want to react on it. String matching will always end up in bugs :)
|
fix impersonated request user mismatch
Description
We fixed a user id and name mismatch in the impersonated auth-app API request
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: