HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How to get access token through api
Hi, I am trying to develop an app using vanilla forums api. I have figured out that we need the access token of a user to post a discussion. I am using version 2 of the api. Can anyone help me with getting a access token of any user. we will have the id of the user, is there any way by which we can get the token/ transient key and token id.
Also, is there any way other than this api(https://docs.vanillaforums.com/help/apiv2/swagger/#/Tokens/get_tokens__id_) to get the token.
Thanks.
0
Comments
Any update on this matter? I'm facing the same problem
Well, you obviously found that discussion where there is an example.
Can you share the link of that discussion? 😁
I really appreciate that you are searching the forum for solutions. But if you haven't find the answers to the question you are asking here and also in this discussion in that other discussion where you have posted, I begin to doubt that I understood your requirements. From what I can see you have asked three different questions:
Could you please describe what you have right now and what you need? Maybe instead of polluting three different discussions, you should start a dedicated discussion just for that?
Currently, I'm looking for a solution to integrate vanilla forum into my application with our own user database. I'm trying to use API at first but then I couldn't found any easy solution for SSO (couldn't fully understand how connectjs works). After that, I try to go for embedded approach but I'm also facing difficulties embedding it in Reactjs app. From what I understand now, if I need to call API on behave of an individual user, i need to create a custom plugin (php) with an endpoint and I need to call that endpoint in order to create a access token for a user. If I'm wrong, could you brief me step by step how connectjs works with v2 api in order to achieve SSO? Thanks in advance 😁