mollie / mollie-api-python

Mollie API client for Python
http://www.mollie.com
BSD 2-Clause "Simplified" License
113 stars 55 forks source link

Add User-Agent header to OAuth requests #296

Open whyscream opened 1 year ago

whyscream commented 1 year ago

Jonas at Mollie requested to add User-Agent headers to all API requests. We are already doing that for all Mollie data requests, but during the OAuth setup we use a different client (OAuth2Session from requests-oauthlib), which doesn't use the custom User-Agent when refreshing tokens etc.

NB We also have the X-Mollie-Client-Info header, we can add that too.