Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2017-05-29 04:26:03, last edited by showpath (2017-10-04 05:30:13)

showpath
Member
Joined: 2015-02-16
Posts: 106

Authenticating with a linked account!

Here is some basic code to authenticate as linked accounts. Note: It's missing error checks and isn't clean.

//C#
var client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", "Email", "Password", null);
var con = client.Multiplayer.CreateJoinRoom("auth" + client.ConnectedUserId, "AuthRoom", true, null, new Dictionary<string, string>() { { "type", "Link" } });
con.OnMessage += delegate (object sender, Message e) {
    if (e.Type == "auth")
        client = PlayerIO.Authenticate("everybody-edits-su9rn58o40itdbnw69plyw", "linked", new Dictionary<string, string>() { { "userId", e.GetString(0) }, { "auth", e.GetString(1) } }, null);
    };

You can no longer connect to $service-room instead connect to "auth" + client.ConnectedUserId

Offline

#2 2017-05-29 10:32:42

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: Authenticating with a linked account!

Could you perhaps specify what a linked account is?
Or is it a facebook/kong account linked to normal EE?

Offline

Wooted by: (2)

#3 2017-05-29 18:03:44

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: Authenticating with a linked account!

I'm interested in which linking. So I can update my bots so it will work.

Offline

#4 2017-05-29 20:15:53

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: Authenticating with a linked account!

den3107 wrote:

Could you perhaps specify what a linked account is?
Or is it a facebook/kong account linked to normal EE?

Pretty much is just a link from kong/fb/ag to normal ee. I have my account linked and I can now login with an email and password.


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

Xfrogman431496085353661716

Board footer

Powered by FluxBB

[ Started around 1732700716.8941 - Generated in 0.163 seconds, 12 queries executed - Memory usage: 1.39 MiB (Peak: 1.48 MiB) ]