Channels
bot-training
community
contributing
general
github-activity
info
introductions
new-releases
random
security
support-questions
welcome-0xdelusion
welcome-aj-ya
welcome-aleksandrc
welcome-alpinjs
welcome-amberlamps1
welcome-andrew-rodriguez
welcome-ankit-choudhary
welcome-anthony-stod-custodio
welcome-call-in
welcome-chwalbox
welcome-claybiokiller
welcome-co7e
welcome-cosmoecwsa
welcome-devdag
welcome-dinso
welcome-drebotelho
welcome-elio
welcome-ernest
welcome-foxbarrington
welcome-fromscratch
welcome-galto4ir
welcome-goetzum
welcome-hay-kot
welcome-himanshu-kukreja
welcome-hossambarakat
welcome-ichikawakazuto
welcome-jahir9991
welcome-jamesl
welcome-jerry123424
welcome-john-oliver
welcome-jonas-alexanderson
welcome-jxyz
welcome-kelvinwop
welcome-kraz
welcome-lancekey
welcome-leoo
welcome-lukeacollins
welcome-m-j-mon
welcome-malik-khoja
welcome-marco
welcome-mardadi
welcome-meshguy
welcome-metamorph
welcome-mike-tectu
welcome-mirzok
welcome-mozomig
welcome-naberyou66_
welcome-nacer
welcome-namratha
welcome-naveenkumar
welcome-nightlight
welcome-nischith
welcome-notankit
welcome-olawumi
welcome-pavan-kumar-reddy-n
welcome-pineappaul
welcome-poothebear
welcome-rick
welcome-samuel-qosenergy
welcome-samuelstroschein
welcome-shubhamgoel23
welcome-shubhamkaushal
welcome-sidebar
welcome-surajsli
welcome-suyash_
welcome-syntaxerror
welcome-tauno
welcome-tawnoz
welcome-teclali
welcome-tls
welcome-turbosepp
welcome-vikram_shadow
Powered by
Title
r
rahoulb
01/31/2023, 4:06 PM
On the front end I can use Javascript - not a problem - and then pass the User ID to the Rails app
But am I OK setting up, say a Node backend server - getting the JS to talk to this
And then my Rails app taking that User ID and just calling the Core server to verify it and get details
r
rp
01/31/2023, 4:08 PM
the JS on the frontend can call the rails backend with the JWT which the rails backend can verify
r
rahoulb
01/31/2023, 4:08 PM
It looks like CDI's GET /recipe/user with the ID will do it
Aah OK - cheers
And it looks like the FDI is relatively simple to implement too - it's just mainly pass-throughs to the CDI?
If so, I will probably build a Rails engine that implements it, so people can embed it directly into their Rails app
r
rp
01/31/2023, 4:12 PM
well.. the backend SDK does a lot of things and it's not just a pass through
r
rahoulb
01/31/2023, 4:15 PM
OK - I'll hold off on that one till I've looked through the other backend source (getting overexcited!)
Found it - so it's the fronttoken header - send that to Rails, which can decode it and it then knows who the user is
Perfect!
Thank you
r
rp
01/31/2023, 4:37 PM
It’s not the front token. Id suggest that you see our docs for using session with JWT.
r
rahoulb
01/31/2023, 4:41 PM
ok
#support-questions
Join Discord