https://supertokens.com/ logo
Docs
Join the conversationJoin Discord
Channels
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-tauno
welcome-tawnoz
welcome-teclali
welcome-tls
welcome-turbosepp
welcome-vikram_shadow
welcome-yann
Powered by Linen
support-questions
  • r

    rp

    04/18/2021, 9:09 AM
    Will do this in the next version release (3.4) - which will also contain an update to use the latest JDK
  • z

    ZeferiniX

    04/18/2021, 9:09 AM
    Also, an option to just pass a full connection string to the db where that takes priority, if not set then it looks on the individual fields
  • r

    rp

    04/18/2021, 9:10 AM
    What would the full connection string look like?
  • z

    ZeferiniX

    04/18/2021, 9:10 AM
    postresql://postgres:password@host:port/db_name
  • z

    ZeferiniX

    04/18/2021, 9:11 AM
    Typical connection string?
  • r

    rp

    04/18/2021, 9:11 AM
    yup. Looks good
  • z

    ZeferiniX

    04/18/2021, 9:12 AM
    We use full connection strings a lot, I think even managed db services at least on those I've tried just provides plain connection strings so yea
  • z

    ZeferiniX

    04/18/2021, 9:12 AM
    Unless you're doing something special with the individual fields xD
  • r

    rp

    04/18/2021, 9:13 AM
    Nothing special.. will add full connection string! thanks. These are the two issues for this: - https://github.com/supertokens/supertokens-core/issues/220 - https://github.com/supertokens/supertokens-core/issues/221
  • z

    ZeferiniX

    04/18/2021, 9:14 AM
    Awesome! Looking forward to it!
  • u

    user

    04/20/2021, 8:13 PM
    hey all, I am working on a small product for which I am first building the backend. let's say I want to implement ST as my user auth solution and want to test it. would I need to set up the frontend as well so I can test various scenarios of the front auth-ing a user on the backend? or I could somehow test the backend part of the implementation alone? 🤔 all thoughts are appreciated! 🙏
  • d

    dleiva04

    04/20/2021, 11:08 PM
    Yeah you can, you can test it using postman, insomnia even curl if you like the terminal, you just have to create an endpoint on your backend so the program can make an http request into that endpoint or even if its a graphql api you can also test it using postman or insomnia
  • u

    user

    04/21/2021, 7:10 AM
    Postman is my weapon of choice. 🙂
  • u

    user

    04/21/2021, 7:21 AM
    but wait - there's something I don't understand. ST has a frontend SDK which should be responsible for sending initial auth data to the backend SDK, right? so, how could I test the backend part if I am missing the frontend? could please explain in the most simplistic terms so I could understand it? 🙏 🙂
  • r

    rp

    04/21/2021, 7:55 AM
    So the backend (via our node SDK) exposes a few APIs that are consumed by the frontend. You can call those APIs manually using postman to test your backend.
  • r

    rp

    04/21/2021, 7:56 AM
    The list of APIs exposed are: https://github.com/supertokens/frontend-driver-interface/blob/master/v1.7.0.md (Based on the recipes you have called
    init
    on)
  • r

    rp

    04/21/2021, 8:08 AM
    @User which recipe are you using? - emailpassword - thirdpartyemailpassword - thirdparty - session Based on your answers, I can send you an example of what it's like to query an API manually to test if the core and the backend (APIs) are working or not.
  • d

    dleiva04

    04/21/2021, 8:12 AM
    Hey
  • d

    dleiva04

    04/21/2021, 8:12 AM
    message has been deleted
  • d

    dleiva04

    04/21/2021, 8:12 AM
    @User do you know why i got failed connection using this?
  • d

    dleiva04

    04/21/2021, 8:12 AM
    Do im setting the variables wrong or something?
  • u

    user

    04/21/2021, 8:12 AM
    @User emailpassword for me, please. 🙂
  • r

    rp

    04/21/2021, 8:13 AM
    Give me 5-10 mins please.. I'll get back with a reply
  • d

    dleiva04

    04/21/2021, 8:13 AM
    Sure, no worries, thanks for the help
  • r

    rp

    04/21/2021, 8:21 AM
    @User can you run the docker command without the
    -d
    flag (in the last line) and show me what the error is?
  • d

    dleiva04

    04/21/2021, 8:23 AM
    message has been deleted
  • d

    dleiva04

    04/21/2021, 8:24 AM
    Is weird because I try with the same credentials using heidisql and its works
  • r

    rp

    04/21/2021, 8:24 AM
    The issue is that you are passing localhost in the docker image. That points to localhost inside the docker container and not your machine
  • d

    dleiva04

    04/21/2021, 8:25 AM
    Ohh
  • r

    rp

    04/21/2021, 8:25 AM
    so you would need to pass the IP of your machine instead of localhost. And make sure that postgres is listening to that IP
Powered by Linen
Title
r

rp

04/21/2021, 8:25 AM
so you would need to pass the IP of your machine instead of localhost. And make sure that postgres is listening to that IP
View count: 1