Without a browser
Token exchange
A gateway swaps the token of a service for one that acts on its behalf.
Client
zM3BhOPZ0KUAaIH7nCfYJBk-s4…
A gateway
Its registration (RFC 7591); the exchange is granted by an initial access token of its own
{ "client_name": "Beffroi demo: a gateway", "grant_types": ["client_credentials","urn:ietf:params:oauth:grant-type:token-exchange"], "token_endpoint_auth_method": "client_secret_basic", "scope": "invoices.read"}
Proof
Run it: every step it takes is ticked here.