So I have tried to implement OpenId Connect authentication in my ASP.NET Core 2.0 web api. Various articles or tutorials point to using AddJwtBearer (e.g. this article on octa).
In results I got error that looked like this:
Bearer was not authenticated. Failure message: No SecurityTokenValidator available for token:
In the end I somehow figured out that using AddJwtBearer was not correct solution and I had to use AddIdentityServerAuthentication because I got tokens from Identity Server.
I am writing this so that would help others trying to google this.