@julian Thanks for your answer, this means I need to add a backend service.
ufan0
Posts
-
Does API Bearer Authentication support use OIDC Token for authentication? -
Does API Bearer Authentication support use OIDC Token for authentication?I used to use cookies for authentication, but now I have a central IdP (like Auth0), and all user data will be provided by the IdP.
I checked this document: https://docs.nodebb.org/api/read/#section/Overview/Authentication, and I tried using the IdP OIDC token as Bearer Authentication, but it failed.
So, I want to know if this is possible. Maybe I made a mistake.
Thank you, and I guess everyone can't wait to see version 4.
-
A more standardised SSO implementationGreat work!
-
NodeBB v4.0.0-alpha (aka ActivityPub alpha release)Awesome!
-
Invalid CSRF on dev installTwo months ago, it works.
now I met the error again, and it does't work.
-
The effective time of cookies and csrf_tokenGot a new issue:
tag desc is not same like real api return in read api get topic data :
-
The effective time of cookies and csrf_tokenI hope I have described the problem clearly and look forward to any answers.
-
The effective time of cookies and csrf_tokenThis is what I'm doing:
- Try to get
csrf_token
by accessing/api/config
; - Then access
/api/v3/utilities/login
by username and password to obtaincookie
; - Use
csrf_token
+cookie
to access the website through api.
Based on my understanding, the validity of
csrf_token
andcookie
depends on the expiration time ofSession
.And I saw in the control panel that the
Session
expiration time can be set.My question now is, is the expiration time of
csrf_token
andcookie
obtained through the above interface equal to the expiration time ofSession
set by the control panel? - Try to get
-
can not login, console log show "invalid csrf token", everything occured after upgrade nodebb version(v3.0.1 -> v3.1.4)Thank you. Through your reply, I think we met the same scene. I have never searched for anyone with the same problem as me before.
Updating cookieDomain in mongoDB, I didn't even find the relevant description in the official document, which is really amazing.
By the time I replied to this message, my site had been working normally.
I have some interesting questions about your reply:
- I have paid attention to your site sudonix.org. What does this site mainly do? I am very interested in this and have read many posts you shared.
- The log in your proposal post says Info, What configuration is this?
[API] Adding4Route (s) to `api/v3/plugins'.
Thank you again for the solution.
-
can not login, console log show "invalid csrf token", everything occured after upgrade nodebb version(v3.0.1 -> v3.1.4)sorry, I think I need some help.
my website can not login, console log will show "invalid csrf token", like this:
Everything occured after upgrade nodebb version(v3.0.1 -> v3.1.4),
And I didn't do anything else during this period. I have been using nodebb since 2018, and I made sure to upgrade in strict accordance with the way recommended by the official documents.I tried some way that can not solve this problem:
- restore the version to v3.0.1 and v2.x;
- reboot my server machine, nginx, mongoDB;
Could someone please give me some advice?
I have use google, chatgpt, bing, github/nodebb, nodebb community to serch something useful for three days, Fail to produce substantial output. -
Why don't write api support custom topic publishing time?I have done it by editing the database data, and this topic ends.
-
Why don't write api support custom topic publishing time?Hi everyone, I am using the newest write api in nodebb v2.6.1.
I try to create new topic by this api, but I find it doesn't support to edit publish time.
I confirm I had read this api doc and the master code:
- https://docs.nodebb.org/api/write/#tag/topics/paths/~1topics~1/post
- https://github.com/NodeBB/NodeBB/blob/aeb43b9bb1/src/routes/write/topics.js
So how can I edit this publish time when I create a new topic?
Thanks. -
I need help with customizing the post pageAs mentioned in the title, I want to add some javascripts and html to my post. For example, I want to show data by calling api in a specific post.
I tried the
plugin -> markdown ->Allow HTML
, it does not work.It seems will ban the javascript.So is there any good way to meet my needs?
Thanks s lot. -
Something about doc of the api v3 -
forum into android app?https://github.com/ReyKoxha/nodebb-webview
It hasn't update for a long time.
I made some adjustments to make it support higher Android versions, But no features.
-
Something about doc of the api v3I found the api v3 recently, it is amazing!
I think the doc maybe is not complete when i can't wait to use it.
Here(https://docs.nodebb.org/api/#section/Overview/Authentication) introduced something about the authentication, but it seems like haven't remind this param
_uid
, the request can't work well whitout it.Maybe is my problem I can't find the description about it, so I post this to confrim.
In the end, Thanks for everything you did and doing.
-
这个安装还是有一定难度啊@qiancsf 说明一下你的问题,也许我能够提供帮助。
-
How to delete resources of 404This is a sad song, I forgot to backup the avatars and pictures uploaded by the user.
So I loss them all, and now them will be 404 when openning my site.I only know about deleting fields of 404 in the database, but this workload is too much.
Who can tell me how to delete resources of 404 efficiently, thanks a lot.