Migrate to OAuth

After December 2, 2026, Basic Auth API Users will no longer function.

March 31, 2026 is the final date to create any new legacy Basic Auth API Users. Effective April 1, 2026, all new integrations must use OAuth 2.0.

Effective July 1, 2026 you will no longer be able to edit or update existing legacy API Users, and by December 2, 2026 all legacy Basic Auth API Users will be fully deprecated and will stop functioning.

Looks like jmp-pay and jmp-fwdcalls also use Basic Auth

subtickets

It was mentioned that we’d prefer a long-lived Bearer token, but based on these pages, it seems like we’re required to use the Client ID and Client Secret via Basic Auth to obtain a short-lived Bearer token that’s only valid for some period, then we need to obtain a new Bearer token again using Basic Auth before the previous token expires.

I was concerned that we’d have to upgrade bwmsgsv2 to Ruby 3 to get bandwidth-iris v7.4.0’s OAuth, but it looks like none of the dependency versions bundler will backsolve to on Ruby 2.6 require or use anything from Ruby 3. So it seems we can go ahead and upgrade bandwidth-iris in bwmsgsv2 all the way to v7.4.0 to get the new OAuth stuff.

Need to also consider the proxies in /etc/nginx/sites-available/jmp.chat

Maybe we can have an internal endpoint that returns the token header and use auth_request_set $auth_header $upstream_http_authorization; otherwise we probably need our own trivial proxy like we used to have.