IdentityServer4.Contrib.AspNetCore.Testing icon indicating copy to clipboard operation
IdentityServer4.Contrib.AspNetCore.Testing copied to clipboard

[Question] Integration with WebApplicationFactory

Open VictorioBerra opened this issue 5 years ago • 4 comments

Most people testing are using WAF. I would love to see docs or samples on how you configure this there.

VictorioBerra avatar Oct 21 '20 19:10 VictorioBerra

For which server do you want to use the WebApplicationFactory?

For the APIs or for the Identity-Server itself? It's kind of relying on lower level functionality but it might be possible to change that, since the WebApplicationFactory is also just creating a TestServer.

alsami avatar Oct 22 '20 04:10 alsami

I would like to use WebApplicationFactory for IdentityServer. Could you please provide some examples for it? I am kind of lost...

yesjustak avatar Dec 07 '20 08:12 yesjustak

Which part do you want to do with the Factory? The WebApi or the Identity-Server instance?

alsami avatar Dec 07 '20 09:12 alsami

IdentityServer instance that would issue tokens which would be valid for the webApi and integration tests I write for it.

yesjustak avatar Dec 07 '20 10:12 yesjustak