IdentityServer / IdentityServer3.AccessTokenValidation

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

Exception if app.GetLoggerFactory() returns null #70

Closed dcinzona closed 8 years ago

dcinzona commented 8 years ago

Referencing my comments in this issue: https://github.com/IdentityServer/IdentityServer3.AccessTokenValidation/issues/47

Our app.GetLoggerFactory method returns null, and this causes a crash when trying to build out the validation endpoint token provider (or introspection endpoint token provider).

https://github.com/IdentityServer/IdentityServer3.AccessTokenValidation/blob/dc9d280f75feb093dc2516f44583f6ca6d0f9c2b/source/AccessTokenValidation/Plumbing/ValidationEndpointTokenProvider.cs#L39

dcinzona commented 8 years ago

Resolved by manually setting the logger (although I'm not sure this should be a requirement).