3

It is hard for me to complitly uderstand how works identoty server 3. Even when I spent lot of time to investigate. Now I am trying to run IdentityServer3 samples.

I can run client (for example: WPF Implicit Client), but I cannot login when I run this.

I assume that I have to run two more projects

  • Project which host identity server (place where clients and scopes are registred)
  • and also api project.

When I try to run 'Sample Web API' project I get error:

An exception of type 'System.InvalidOperationException' occurred in IdentityServer3.AccessTokenValidation.dll but was not handled in user code

Additional information: IDX10803: Unable to create to obtain configuration from: 'https://localhost:44333/core/.well-known/openid-configuration'.

  • So probably still missing identity server project but I don’t know where is this project? (I am talking about project with localhost:44333).

  • Also do I need to set certificate somehow?

I tryied so many things and still nothig. Can you please help me to run this examples. Because this does not work when just download solution.

It would be great if someone knows steps what need to be done to make semples work.

Thanks for help.

Raskolnikov
  • 3,791
  • 9
  • 43
  • 88
  • Which sample is it your looking at? – Derek Jan 20 '16 at 13:32
  • I would like to investigate all mvc clients. – Raskolnikov Jan 20 '16 at 13:37
  • Ok, The StartUp.cs in the SampleAsoNetWebApi, is looking for Port:44333. Youneed to change it to the port the project is pointing at... or you can change the port of your app to point at port:44333 – Derek Jan 20 '16 at 13:38
  • If I am right than 'localhost:44333' should point to IdentityServer, to provide authentification, not to some client. And every Client should be one that calls 'api' (and also identity server). Api should not be aware of client. – Raskolnikov Jan 20 '16 at 13:49
  • https://vimeo.com/91405115 Watch this video. You need a good understanding of both OAuth and OpenId – Derek Jan 20 '16 at 14:23

1 Answers1

3

Samples will not work, without Identiy server host.

For that I had to download Identity Server 3, and than run 'Host.Console' project (probably will also work with 'Host.Web' project)

Samples and Host console should be open in separate visual studio instances and run at the same time.

Raskolnikov
  • 3,791
  • 9
  • 43
  • 88