I have an OpenIdDict
authentication server which is based on AspNet.Security.OpenIdConnect.Server
. The setup works as expected.
Now to do some in process integration;system tests which span the whole backend architecture I use the TestServer
class.
Why I test like this is another question
- Most test code coverage with least amount of work
- It has been decided to not do unit tests... (too much work they say)
- Real integration tests which span much less code where also seen as to much work when I want to achieve a good coverage
- The test are based on an framework that is build using a domain language approach which means I can describe functionality the same for our current web api tests, for selenium web ui tests, for selenium load tests and for wpf ui testing.
When I call an web api endpoint of my ressource server the authorization wants to load http://localhost/.well-known/openid-configuration
but fails.
{"IDX10803: Unable to obtain configuration from: 'http://localhost/.well-known/openid-configuration'."})
This are the OpenIdConnectSettings I use for the Testing Environment:
- AllowInsecureHttp = true,
- RequireHttpsMetadata = false
Can I get the server to emit the configuration or can I provide the configuration in an other way?