IdentityServer / IdentityServer3.AccessTokenValidation

OWIN Middleware to validate access tokens from IdentityServer3
Apache License 2.0
91 stars 149 forks source link

Define multiple issuers in TokenValidationParameters #167

Open vytautasziurlis opened 6 years ago

vytautasziurlis commented 6 years ago

Hi,

We have a requirement to change URL of our existing IdSrv3 instance and do it without any outage. Playing around with url rewrites/proxies etc etc for many reasons seems too complicated. Instead I looked into UseIdentityServerBearerTokenAuthentication extension method and noticed that TokenValidationParameters does actually allow specifying more than one issuer and audience. This would be perfect in our case and would solve our problem very elegantly. However I also noticed that UseIdentityServerBearerTokenAuthentication does not allow to specify multiple issuers/audiences. Is there an easy way to specify multiple issuers/audiences using your middleware? Maybe I missed something obvious while looking through code. Thanks!