-
Notifications
You must be signed in to change notification settings - Fork 1
When and where is actionUpdate() used? #1
Comments
@luke- how can I access the POST endpoint of humhub-modules-fcm-push/Events.php Line 133 in 955db97
|
@steffes if you plan to use the action outside of the browser context, you may also need to disable the CSRF protection (additional random param) class TokenController extends Controller
{
public $enableCsrfValidation = false;
public function actionUpdate() {
//... Otherwise you’ll get a 403 error. Otherwise it is a simple POST request with a single parameter named "token". So no JSON body or something like that is used. The current user is read from the session. Do we need to change something? |
Applying the latest commit about CSP from @buddh4 to my public $enableCsrfValidation = false; to my TokenController helped from getting 404 as a POST response, to a 401 with If I am outside of the browser context is there anyway to use the auth_token I get with the RESTful API Module ( |
Unfortunately there is currently no link between the rest of the module and the FCM Push module yet. You can either add FCM Push (add/update token) stuff to the existing Rest Module or add some basic auth to the FCM module (preferred). |
I am building an iOS client using the RESTful API module and Firebase module. When is the
actionUpdate()
used? How do I invoke the saving of a new user in the fcmpush_user table?humhub-modules-fcm-push/controllers/TokenController.php
Lines 30 to 37 in 955db97
I have added all the credentials in the Firebase module. After checking the Mobile options, I am still not added to the fcmpush_user table
How can I add the fcm token, created on my iOS device, to the fcmpush_user table? Is this available through the RESTful API module? If not how can I refactor to make this possible?
The text was updated successfully, but these errors were encountered: