c# - Windows 8 Web Authentication Broker can't connect to the service -
can web authentication broker used non oauth authentication ?
i have created asp.net mvc2 website login page want use through web authentication broker retrieve , persist authentication cookie.
here code :
webauthenticationresult webauthenticationresult = await webauthenticationbroker.authenticateasync( webauthenticationoptions.none, new uri("https://localhost:44301/account/logon"), new uri("https://localhost:44301/"));
when loaded wab returns following message "can't connect service" , when looking event viewer there navigation error event.
is wrong code or there no way connect cookie based login page ?
web authentication broker meant winrt applications.
in case have several options.
use dotnetopenauth directly
upgrade mvc4 , use support provided via asp.net 4.5's addition of oauth functionality included in default templates. see using oauth providers mvc it's super easy integrate mvc app.