Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7639327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:23:26+00:00 2026-05-31T08:23:26+00:00

On SignalR .NET, we establish a connection as below between the client and server:

  • 0

On SignalR .NET, we establish a connection as below between the client and server:

var connection = new HubConnection("http://mysite/");

Next, we subscribe the events and start the connection as below:

connection.Start().Wait();

What if I would like to establish a secure connection between the client and server. How can we achieve that with current features?

I noticed that there is a property type of System.Net.ICredentials on HubConnection class. Is this the way for this? If so, how should we handle the Auth at the server side for our Hubs?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T08:23:28+00:00Added an answer on May 31, 2026 at 8:23 am

    Here is how I have mine set up:

      var hubConnection = new HubConnection("http://siteurl");
      hubConnection.Credentials = CredentialCache.DefaultNetworkCredentials;
      hubProxy = hubConnection.CreateProxy("My.Hub.Namespace");
    
      hubConnection.Start().Wait();
    

    You could of course pass in different credentials, I use DefaultNetworkCredentials

    The credentials returned by DefaultNetworkCredentials represents the authentication credentials for the current security context in which the application is running. For a client-side application, these are usually the Windows credentials (user name, password, and domain) of the user running the application. For ASP.NET applications, the default network credentials are the user credentials of the logged-in user, or the user being impersonated.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the SignalR Javascript client and ASP.NET ServiceHost. I need the SignalR hubs
I have some very basic SignalR code running on the js client: var conn
In general chat application, client's browser always poll to server to check for new
I'm trying to get a console application working with the SignalR .Net Client but
How does the SignalR handle client disconnection? Am I right if I state the
Is there any way to stop polling server in SignalR? I want to stop
I saw examples of asynchronous socket server here http://msdn.microsoft.com/en-us/library/fx6588te.aspx#Y0 How do I know the
I am using SignalR in an ASP.Net Web Application project and am having issues.
I have a desktop app (.net 3.5) which communicates with the server using classic
I've seen signalR vs html5 websockets for asp.net MVC chat application but it doesn't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.