We are using the Code Sample from Wictor's post to Programmatically authentication to Office 365 and SharePoint Online. The cookie however is returned null when we pass the user id and password for a external user that we added.
Now my question is what kind of user do we need to make a connection (authentication) for uploading documents. Do we need a Licensed user or any user added as external user works?