Thanks for your suggestion. Enabling the trace allowed me to verify that the NameId was actually read correctly.
I made a bad diagnosis: it was in fact one of the attributes value that was null, not the username, which makes sense looking at the response.
Nothing wrong the API, sorry for the hassle!
|