@julian we are using apache2 to host nodebb
santoshkumarr
Posts
-
https SSL issue invalid csrf token -
https SSL issue invalid csrf token@julian how can we check whether it is passing to https equivalents or not. Any where i need to configure that?
-
https SSL issue invalid csrf token@adam-poniatowski this is not working, if i remove 4567 then it will access my parent web application, from where i'm accessing forum applicaiton
-
https SSL issue invalid csrf token@teh_g As explained above we tried that one too, by adding https in config.json.
In this case unable to login getting Login Unsuccessful We were unable to log you in, likely due to an expired session. Please try again" ie. invalid-csrf-token error.Same time no of sessions are creating in sessions model
-
https SSL issue invalid csrf tokenI'm using AWS EC2 instance with Apache2, my config.json looks like below
{
"url": "https://app.mysite.com:4567",
"secret": "b75e7387-3d2a-487b-8b14-2c2c0c01c6fe",
"database": "mongo",
"mongo": {
"host": "127.0.0.1",
"port": "27017",
"username": "careerwaze",
"password": "careerwaze",
"database": "forums"
}
}
When i'm running with this configuration using "https://", getting "Login Unsuccessful We were unable to log you in, likely due to an expired session. Please try again" ie. invalid-csrf-token error. Here no of sessions are creating for one login.26/7 09:31 [26144] - error: /login
invalid csrf tokenWhen accessing with the below config.json i.e with "http://"
{
"url": "http://app.mysite.com:4567",
"secret": "b75e7387-3d2a-487b-8b14-2c2c0c01c6fe",
"database": "mongo",
"mongo": {
"host": "127.0.0.1",
"port": "27017",
"username": "careerwaze",
"password": "careerwaze",
"database": "forums"
}
}
Its logging correctly only one session object is creating. When logout the application it logging out successfully.
But when i'm using session sharing plugin to login from other application using "JWT" its logging in correctly, but when trying to logout its not working. Here session is deleting but immediately when i'm clicking refresh it again showing the same user.I have tried all the possible combination while setting the cookie domain in session sharing plugin.
.mysite.com
*.mysite.com
mysite.com
app.mysite.com -
Populate additional fields when creating a user using Write API@baris Hi, i too have the same requirement, i understand that we have to write a plugin to use the hooks filter:user.updateProfile.
Could you please provide any sample to write plugin and use this hook.
Thanks -
User Logout from external application@julian Some where i have seen this reply replied by you If your game can read the mongodb database the forum uses (or Redis), then you can use the express.sid cookie to retrieve their session from the NodeBB database and log them in that way.
I can able to connect to mongoDB from my application by executing db.sessions.find().pretty();, there are no of cookies are available there. How can get the relevant cookie to delete and logout the user
-
User Logout from external application@julian I tried the same to delete express.sid in my application, but unable to get that expression.sid name under my application cookies, in browse console i'm able to see the cookie under application->cookies.
-
User Logout from external applicationHow can i call logout functionality from external application, so that Nodebb can logout. Any api available like /logout.
Reverse I am able to do, logging out my application when clicked on Nodebb logout. -
Redirect to login@baris could you please tell where the exactly custom is located in ACP
-
Theme Images@yariplus I'm trying in the same way like you mentioned.
created: static/images in node_modules/nodebb-theme-persona
in plugin.json i have added the below line
"acpScripts": [
"lib/admin.js"
],
"staticDirs": {
"images": "static/images"
}
and in the header file i'm trying to get the image like below
<img src="/plugins/nodebb-theme-persona/images/logoWithText.png" />but this is not working. Please suggest what am i doing wrong
Thanks
-
Can't find CSS images?@julian I'm trying in the same way like you mentioned.
created: static/images in node_modules/nodebb-theme-persona
in plugin.json i have added the below line
"acpScripts": [
"lib/admin.js"
],
"staticDirs": {
"images": "./static/images"
}
and in the header file i'm trying to get the image like below
<img src="/plugins/nodebb-theme-persona/images/logoWithText.png" />but this is not working. Please suggest what am i doing wrong
-
adding header above the nodebb menubar@psychobunny I'm using current version of nodebb, but i can't find public folder in it, any way i find direct template folder but html i'm giving not working.
Please tell me how i have to add header above the nodebb menubar
Thanks
-
Calling notifications using socket.io from angular appCan any one tell me how to get call notifications using socket.io from angular or nodejs app
-
Notification to external web applicaitonThank you @meetdilip, any example or documentation for reference.
-
Notification to external web applicaitonI have a web app running in different server, for forum i want to use Nodebb. Is there any way to send notification to my web app when any post created or any one replied, commented to my post.
-
Angular plugin to integrate nodebb into existing appliation@pichalite I want to integrate nodeBB as a link in my angular application, not as application which runs on different server.
-
Angular plugin to integrate nodebb into existing appliationI'm trying to use nodeBB as discussion platform for our application. Is there any plugin or guide available that how to integrate nodeBB into my existing angular web applicaiton.
Thanks