Get username with SAML authentication in iOS
I try to retrieve the username who has just registered.
To register on the server, I use a SAML authentication with MALLogonUIViewManager that shows me a webpage that comes directly from the server.
Authentication is successful but when I try to retrieve the username, I use the code:
MAFLogonRegistrationData * data = [self.logonHandler.logonManager registrationDataWithError: & error];
and inside, my username is empty and my password is nil.
How can I do to get the name of the user who has just registered with this type of authentication ?
Finally, I have not found how to do, so I bypassed the problem: I identify via SAML, so when I make my first request, the server already knows who I am, so I added the username in the response of my first web service.