There are relevant bits in at least sgx_jmp.rb, lib/bandwidth_tn_repo.rb, and bin/porting
Force-pushed to clean up the first commit a bit, added a second for new OAuth client_id/client_secret config fields and switched to them from Basic username/password.
I think I forgot to do bin/porting
https://git.sr.ht/~singpolyma/sgx-jmp/tree/master/item/bin/porting#L90-91