Project

General

Profile

Actions

Bug #24042

closed

When the Oauth2 role provisioning attribute is incorrect, the error is misleading

Added by François ARMAND 10 months ago. Updated 9 months ago.

Status:
Released
Priority:
N/A
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No

Description

If one use Oauth2/OIDC role provisionning and misconfigure `rudder.auth.oauth2.provider.${idpID}.roles.attribute` value or that attribute is not sent to Rudder, then we get in the log:

2024-01-18 15:50:36+0100 WARN  auth-backends - Unable to get custom roles for user 'francois@rudder.io' when looking for attribute 'customroles' :Cannot invoke "scala.collection.mutable.Buffer.map(scala.Function1)" because the return value of "scala.collection.convert.AsScalaExtensions$ListHasAsScala.asScala()" is null'

Which awfully looks like a stacktrace in disguise.
The error message must clearly tell "hey, please check your config for that value"

Actions #1

Updated by François ARMAND 10 months ago

  • Status changed from New to In progress
Actions #2

Updated by François ARMAND 10 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder-plugins/pull/634
Actions #3

Updated by Anonymous 10 months ago

  • Status changed from Pending technical review to Pending release
Actions #4

Updated by Clark ANDRIANASOLO 10 months ago

  • Fix check changed from To do to Checked
Actions #5

Updated by Vincent MEMBRÉ 10 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder plugin auth-backends v8.0.5-2.7

Actions #6

Updated by Vincent MEMBRÉ 10 months ago

This bug has been fixed in Rudder plugin auth-backends v7.3.11-2.7

Actions #7

Updated by Vincent MEMBRÉ 9 months ago

This bug has been fixed in Rudder plugin auth-backends v8.1.0.beta1-2.7

Actions

Also available in: Atom PDF