Skip to content

Conversation

@adombeck
Copy link
Contributor

When trying to log in as a user which doesn't have a local password yet and the broker fails to connect to the provider, we showed this error:

could not get authentication modes: no authentication modes available for user "[email protected]"

That's not very helpful. This commit strips the "could not get authentication modes:" part.

UDENG-8817

When trying to log in as a user which doesn't have a local password yet
and the broker fails to connect to the provider, we showed this error:

    could not get authentication modes: no authentication modes available for user "[email protected]"

That's not very helpful. This commit strips the "could not get
authentication modes:" part.

UDENG-8817
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.53%. Comparing base (3e36e9c) to head (bca9673).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1198      +/-   ##
==========================================
- Coverage   87.54%   87.53%   -0.02%     
==========================================
  Files          91       91              
  Lines        6231     6231              
  Branches      111      111              
==========================================
- Hits         5455     5454       -1     
+ Misses        720      717       -3     
- Partials       56       60       +4     

☔ View full report in Codecov by Sentry.
📢 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.

@adombeck adombeck marked this pull request as ready for review January 15, 2026 17:12
@adombeck adombeck requested a review from a team as a code owner January 15, 2026 17:12
return pamError{
status: pam.ErrSystem,
msg: fmt.Sprintf("could not get authentication modes: %v", err),
msg: err.Error(),
Copy link
Member

Choose a reason for hiding this comment

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

Pretty much the same concern I listed on the PR in the brokers repo

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.

4 participants