How to use JWT and URL parameters authentication in ASP.NET CORE 2 Web API

Clash Royale CLAN TAG#URR8PPP
How to use JWT and URL parameters authentication in ASP.NET CORE 2 Web API
We have an ASP.NET Web API which authenticates via URL. Like:domain.com/api/endpoint?key=secret-key
domain.com/api/endpoint?key=secret-key
We're now migrating it to ASP.NET Core 2.1 Web API and authenticating the API via SSO using JWT (Microsoft.AspNetCore.Authentication.JwtBearer)
JWT authentication works fine with [Authorize] attribute like:
[Authorize]
[Authorize]
public class AuthController : Controller
How do I authenticate the new API using URL authentication and JWT at the same time, as we have third party users consuming the API via URL authentication.
Any help would be really appreciated.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.