Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

SignalR with OAuth Token not Supported in Xamarin Forms IOS?

$
0
0

Hi All! I have a Forms app using SignalR and Owin OAuth tokens on the server side. The application is logging in and obtaining the token, then adding this to the header of my signalR hub.
hubConnection.Headers.Add("Authorization", "Bearer " + InfoStore.AuthProperties.access_token);

then starts the connection. This is all working fine on Windows Phone client using xamarin forms, but when I try in the IOS client I can the following exception on the Hub.Start() method.

"HttpClientHandler.PreAuthenticate is not supported on this platform. Please check HttpClientHandler.SupportsPreAuthenticate() before using HttpClientHandler.PreAuthenticate."

Obviously the message is pretty straight forward, but if the client does not support it, what is the workaround for IOS? I have not yet tested with Android.


Viewing all articles
Browse latest Browse all 58056

Trending Articles