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

Also available in: Atom PDF