After sending /Sts/Connect message and /Auth/StartTls request to the server, I have tried to log in using /Auth/StartSsoLogin message.
Code:
<Request>
<Provider>Portal</Provider>
<LoginName>
</LoginName>
<Scopes>_self full_economy</Scopes>
<Language>en</Language>
<Password>Base64Encoded</Password>
<SavePassword/>
</Request>
Response:
Code:
StsGate: permission denied 'Auth/StartSssoLogin', {not logged in}
I have been sniffing the traffic that the game sends to the server and I did not find anything other auth related stuff that it does before this message. After the patcher receives response from the server, it starts the authentication process that connects to the auth server and grants access to the game, not before.
What am I missing?
The patcher seems to be sending connect message to multiple servers.
cligate.101.ncplatform.net.
cligate-fra.101.ncplatform.net. (Returned by GetHostname)
Is this related? Busted.
Edit: Figured it out.