Hopefully this helps someone. I found it really hard to set up Swagger in a .NET Core project, but this guide here should do it : Using Auth0 With An ASP.NET Core API - Part 3 - Swagger - .NET Core Tutorials
Doing this, then reverse engineering it, the JSON that it loads into Swagger looks like so :
"securitySchemes": {
"Bearer": {
"type": "oauth2",
"flows": {
"implicit": {
"authorizationUrl": "https://mydomain.us.auth0.com/authorize?audience=myapiaudience",
"scopes": {
"openid": "Open Id"
}
}
}
}
}
This seems to work alright and fetches a token correctly for me.