clerkio / clerk-magento

Other
8 stars 20 forks source link

Module needs an actual User Agent name #49

Closed olzen90 closed 7 years ago

olzen90 commented 7 years ago

Problem

Magento module uses generic Python User Agent name. Some developers want to block out unnecessary traffic, but its hard to give the module access, without a more defined name.

Reproduce

The following call is being sent by the module:

_52.28.255.187 - - [10/Oct/2016:11:14:47 +0200] "GET /clerk/api/product/?limit=200&page=1&store=4 HTTP/1.1" 401 188 "-" "__python-requests/2.7.0 CPython/2.7.10 Linux/4.1.13-19.31.amzn1.x86_64_"

Expected

Module should use a more clearly defined User Agent Name, like __clerk_bot__, allowing developers to easily allow access for our module only.

Example: _52.28.255.187 - - [10/Oct/2016:11:14:47 +0200] "GET /clerk/api/product/?limit=200&page=1&store=4 HTTP/1.1" 401 188 "-" "__clerk_bot__"_

RBech commented 7 years ago

This issue is not related to the magento extension but to the internal workings of the clerk.io system, relay to HKB ;)