collective / volto-hydra

A volto addon to let you edit content in realtime when you have many frontends written in any framework
0 stars 2 forks source link

As an integrator I can not have to load hydra.js all the time to know user has started editing #47

Closed djay closed 2 months ago

djay commented 2 months ago

This means anon browsing is kept lean by not loading things they don't have to

djay commented 2 months ago

@MAX-786 I think it would be good to do this now since the current README is very hard to understand. it says how to init three times and its much harder to understand that you get the token after you init rather than before.

djay commented 2 months ago

Currently auth is broken. so switching to this should fix that problem

JeffersonBledsoe commented 2 months ago

@MAX-786 Just a heads up, the query parameter should be named 'access_token' as it follows the auth pattern defined in https://www.rfc-editor.org/rfc/rfc6750#section-2.3 . No direct benefit to us as we aren't using the token directly for requesting resources in the admin UI, but it makes things clearer for the integrator.

MAX-786 commented 2 months ago

Ooh I used as 'auth_token' same as it is stored in cookies... good thing I havent pushed that commit in remote :) I will change it now.