Base solution for your next web application

Activities of "ianmark89"

Hi,

Firstly, I created a simple signal R hub then I built a console client hub connection successfully connect to that hub without any authentication. E.g: static void Main(string[] args) { var querystringData = new Dictionary<string, string>(); querystringData.Add("foo", "bar"); var hubConnection = new HubConnection("http://localhost:62114/", querystringData); IHubProxy stockTickerHubProxy = hubConnection.CreateHubProxy("MySampleHub"); stockTickerHubProxy.On<string>("messageRecieved", str => { Console.WriteLine("New Message: \n" + str); }); ServicePointManager.DefaultConnectionLimit = 100; hubConnection.Start(new LongPollingTransport()).GetAwaiter(); Console.ReadKey(); }

I need all clients connect to my hub must be authenticated then I set GlobalHost.HubPipeline.RequireAuthentication() in Web.Mvc project - Startup.cs file. The console client now can't receive message from server hub, by how I can have my console client authenticated :( ?

Any help would be appreciated. Thanks

To sign-in to our mobile app, user must sign-in by their facebook and provide phone number if not existed. We use facebook account kit to verify entered phone number, how should we update verified phone number after user verified? Should we call UpdateCurrentUserProfile method to update phone number?

Yes, I passed the token via headers. Thanks for supporting.

I tried this and it works :)

var tokenString = "XXX";
var hubConnection = new HubConnection("http://localhost:62114/");            
            hubConnection.Headers.Add("Authorization", "Bearer "+tokenString );

Hi,

I added new property called "Domain" to Tenant entity and updated TenantIdAccessor to find tenant by domain, but you've removed this class in version 3.1.0. Where can I put my changes to find tenant by domain?

Which is file I can put Configuration.MultiTenancy.Resolver?

Thanks for your answer. I've got CGI issue when find tenant by domain by TenantManager. Do you have any idea about this?

You can fix it by removing http// or https:// like this one "WebSiteRootAddress": "{TENANCY_NAME}.yourdomain.com"

Showing 31 to 38 of 38 entries