IdentityServer / IdentityServer3.Samples

Samples for IdentityServer v3
Apache License 2.0
610 stars 1.25k forks source link

Windows Phone Sample is not working #70

Closed khushalpatel1981 closed 9 years ago

khushalpatel1981 commented 9 years ago

It's always saying "User cancelled authentication" when clicked on any button given on the screen

brockallen commented 9 years ago

In which environment? Also, what did the IdentityServer logs say?

khushalpatel1981 commented 9 years ago

Nothing logs in the trace.log file, but when running clients project it is logging events in the file. Environment: Windows 10 Technical Preview, Visual Studio 2013 bug

brockallen commented 9 years ago

That looks like an emulator, yes? If so, then it sounds like the emulator isn't even hitting the network -- that's what you need to debug. Also, we've not tested on windows 10 technical preview, so it's not something we can support right now.

khushalpatel1981 commented 9 years ago

Yes, emulator is hitting the network and IdentityServer also but don't know why it is keep cancelling... may be some environmental issue, i will debug this on the real device and with a test server once i finish. I will update you in any case...

khushalpatel1981 commented 9 years ago

Yes @brockallen you are right its working with the real device thanks for the help :)

claq2 commented 7 years ago

The problem is that the phone emulator doesn't trust the localhost cert. You can put the cert on a web server and open it on the phone. This gives you the choice to install it, which seems to add it to the root CAs. Details are in this blog post. Running the SelfHost project I now get the IdentityServer3 UI, but it doesn't recognize the client. I'm guessing because the phone project is sending "implicitclient" but there's no such client defined in _sharedConfiguration\Clients.cs, but that's a different issue.