devdigital / IdentityServer4TestServer

Identity Server 4 testing helper for .NET Core
MIT License
25 stars 4 forks source link

Extra examples/samples? #20

Open VictorioBerra opened 6 years ago

VictorioBerra commented 6 years ago

I think it would be really helpful to have some extra sample projects.

For example, it would be nice to have a simple API (as seen here) and then show how IdentityServer4TestServer can be used, maybe along side WebApplicationFactory?

A lot of us will be using WebApplicationFactory already, overriding stuff like ConfigureServices as seen here. So, examples would help people like me move over to this.

I really just want to be able to have my protected API use the IdentityServer4TestServer as the authority so I can easily create clients with tokens to test my different endpoints using different scopes/claims.

VictorioBerra commented 6 years ago

I am assuming right now id use WithConfigureServices or something to change the options.Authority of AddIdentityServerAuthentication to localhost?