public bool Logout(string baseUrl, string username) { BackplaneJSON parameters = new BackplaneJSON() { Source = baseUrl, Id = baseUrl + "/" + username, IdentityUrl = baseUrl + "/" + username }; return this.Logout(parameters); }
public bool Login(string baseUrl, string username, string userAvatar) { BackplaneJSON parameters = new BackplaneJSON() { Source = baseUrl, Context = baseUrl, Id = baseUrl + "/" + username, DisplayName = username, IdentityUrl = baseUrl + "/" + username, Username = username, Value = userAvatar, }; return this.Login(parameters); }
public bool Logout(BackplaneJSON parameters) { return this.SendRequest(parameters.GeneratePostData("identity/logout")); }