SonarQube - SAML: NameID is not found

Hi,

I rebuild my val environment with SAML (OneLogin) to valid the upgrade from 7.9 to 8.9 (as we already know an impact caused by the SAML plugin update in 1.2 and integrated now as core feature).

This new OneLogin integration raise an exception due to the NameID:

2021.07.26 09:17:38 DEBUG web[AXrhZ4oo2T+hEcA1AAJJ][c.o.s.a.SamlResponse] SAMLResponse has NameID → guillain.SAN@a.com
2021.07.26 09:17:38 DEBUG web[AXrhZ4oo2T+hEcA1AAJJ][c.o.s.a.SamlResponse] SAMLResponse has NameID Format → urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified
2021.07.26 09:17:38 DEBUG web[AXrhZ4oo2T+hEcA1AAJJ][c.o.s.a.SamlResponse] SAMLResponse has attributes: {Email=[guillain.SAN@a.com], FullName=[SAN, Guillain]}
2021.07.26 09:17:38 DEBUG web[AXrhZ4oo2T+hEcA1AAJJ][c.o.saml2.Auth] processResponse success

2021.07.26 09:17:38 TRACE web[AXrhZ4oo2T+hEcA1AAJJ][o.s.a.s.SamlIdentityProvider] Name ID : guillain.SAN@a.com
2021.07.26 09:17:38 TRACE web[AXrhZ4oo2T+hEcA1AAJJ][o.s.a.s.SamlIdentityProvider] Attributes received : {Email=[guillain.SAN@a.com], FullName=[SAN, Guillain]}
2021.07.26 09:17:38 WARN web[AXrhZ4oo2T+hEcA1AAJJ][o.s.s.a.AuthenticationError] Fail to callback authentication with ‘saml’
java.lang.NullPointerException: NameID is missing
at java.base/java.util.Objects.requireNonNull(Objects.java:246)

I presume having issue due to the unknown NameId format but the team in charge of OneLogin confirmed the conf.

For now I can’t active the trace verbosity in production to compare and check if I’ve the same behaviour so any help will be very helpful :slight_smile:

Thanks in advance :wink:

Guillain

Hello @GUILLAIN_SANCHEZ ,

Logs which you shared are cut-off, is there anything else in the stacktrace? If yes could you share that as well?

What is your saml configuration attributes mapping in SonarQube?

Cheers,
Jacek