How to add bearer auth in the swagger page in AshJsonApi

Is there a way that I can add a simple bearer token auth to the interactive swagger page that is generated by this (great) library?

It defaults and wants to use an api_key but I’m only using bearer auth for this application. It would be helpful to test the AshAuthentication behavior directly in the swagger ui (and not have to resort to Postman etc).

Thanks
Martin

1 Like

You can accomplish this by modifying the open api spec manually. See the section on modify_open_api here: Open API — ash_json_api v1.4.13

1 Like

Thanks. I’m clearly still not mastering locating all of the documentation!