Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login and password authentication #55

Closed
Geppard opened this issue Feb 15, 2019 · 3 comments
Closed

Login and password authentication #55

Geppard opened this issue Feb 15, 2019 · 3 comments

Comments

@Geppard
Copy link

Geppard commented Feb 15, 2019

Good day!
What about authentication with callback answer before connecting to Room?
I haven't finded it in examples

@endel
Copy link
Member

endel commented Feb 15, 2019

Hey @Geppard, did you get a chance to check the auth example on colyseus-examples? Cheers

@impcyber
Copy link

impcyber commented Feb 16, 2019

I think this is about having the ability to pass the login and password parameters to the "opions" and process them at the clientVerify on server, not the room.
There was an issue about colysesus.js
colyseus/colyseus.js#41 (comment)

So, if we look at the unity3d client, we will see that there no possibility to pass "options" (the client on first connection have no parameters)
https://github.com/colyseus/colyseus-unity3d/blob/master/Assets/Plugins/Colyseus/Client.cs#L70

{
    this.id = id;
    this.endpoint = new UriBuilder(new Uri (endpoint));
    this.connection = CreateConnection();
    this.connection.OnClose += (object sender, EventArgs e) => this.OnClose.Invoke(sender, e);
}

https://github.com/colyseus/colyseus-unity3d/blob/master/Assets/Plugins/Colyseus/Client.cs#L159
protected Connection CreateConnection (string path = "", Dictionary<string, object> options = null)

@endel
Copy link
Member

endel commented Aug 23, 2019

@colyseus/social should help you with this now. See docs: https://docs.colyseus.io/authentication/#email-password

@endel endel closed this as completed Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants