Conversation
| return res.json() | ||
|
|
||
| def add_plugin_to_user(plugin_name, plugin_secret): | ||
| config_url = f'http://127.0.0.1:5000/api/1/config' |
There was a problem hiding this comment.
Could you confirm with Evan if this needs to be invoked on the device? It seems easier for the user to invoke this from their laptop instead using 192.168.0.10
There was a problem hiding this comment.
I think it would be cleaner for this tool to delegate to the dashcam to call the endpoint, and any session revalidation edge cases are handled/etc. Having said that, as long the identity is coming from the dashcam it should get the job done
There was a problem hiding this comment.
I don't think it would be feasible to have such an endpoint. The user could have been logged in from multiple different sources (e.g. phantom account via app or Beekeeper). The phantom authentication is completely handled by the app, and the only thing these login methods have in common is that they store a cookie on the device
Concerning the previous question, is there any concern with deploy.py running from the laptop? Copying the script to the device and running seems unnecessary
No description provided.