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
general
  • s

    shorthair_[]

    03/26/2022, 2:21 PM
    message has been deleted
  • p

    porcellus

    03/26/2022, 2:24 PM
    Hi. I'm not the best at python (and I don't really know django) but I'm pretty sure you can just remove
    list(default_headers) +
    .
  • f

    fsimoes

    03/26/2022, 2:41 PM
    from corsheaders.defaults import default_headers
    https://pypi.org/project/django-cors-headers/
  • k

    Kartik

    03/26/2022, 4:23 PM
    can someone help me setup super token authentication for social login for self hosted
  • r

    rp

    03/26/2022, 4:23 PM
    Hey @User you can follow the third party recipe guide on supertokens.com -> docs section
  • k

    Kartik

    03/26/2022, 4:32 PM
    i want a different serve for auth
    r
    4 replies · 2 participants
  • v

    Version467

    03/26/2022, 5:10 PM
    Has anyone successfully setup supertokens with nestjs + graphql? I've had no trouble setting it up for nestjs without graphql, but I'm not able to adapt the supertokens graphql guide to work with the nestjs grapqhl module.
    r
    11 replies · 2 participants
  • d

    DepartureAM

    03/26/2022, 7:48 PM
    Hey all! I have 2 quick questions. 1. How does the managed version scale? If I post my SaaS on 3 different social media sites and get hundreds or thousands of signups within just a few minutes could it handle that? I doubt I'd actually reach those numbers but before I get invested I'd like to know that it could hypothetically be handled. 2. How difficult is it to switch from managed to self-hosted? Is it just a matter of changing connection uri and api key or is there a more complex process I'm not anticipating?
    r
    4 replies · 2 participants
  • s

    shorthair_[]

    03/26/2022, 11:02 PM
    thanks so much porcellus and f simone’s for responding
  • s

    shorthair_[]

    03/26/2022, 11:02 PM
    i’ll give it a try
  • s

    shorthair_[]

    03/26/2022, 11:03 PM
    thanks guys!!
  • s

    shorthair_[]

    03/26/2022, 11:03 PM
    i solved the issue!!
  • s

    shorthair_[]

    03/26/2022, 11:03 PM
    fsimoes 🙂
  • t

    Tajin

    03/27/2022, 11:41 AM
    Hello, I have a web app where the user accounts are created only by the admin, so I want to embed the sign up form in the admin view, and also remove the links that I don't in each form , the login link in the signup form and the signup link in the login form. Should I try customizing the forms or just build a new interface and then consume the APIs provided by supertokens for login/signup?
    r
    3 replies · 2 participants
  • r

    rp

    03/27/2022, 1:41 PM
    Different login and sign up form
  • y

    Yashwant

    03/27/2022, 3:29 PM
    Hello, I was deploying supertokens third party email password recipe on Amazon AWS. The /authorizationurl/ endpoint is giving 403 ERROR. The rest of the APIs are working fine. Attaching a ss of the error. Any specific reasons for this?
    r
    3 replies · 2 participants
  • i

    Idriz

    03/27/2022, 4:27 PM
    Hi, hope I'm not a bother. I am trying to implement my own SDK for use with Kotlin, however there is some behavior I'd like to know about. https://app.swaggerhub.com/apis/supertokens/CDI/2.13.0#/EmailPassword%20Recipe/emailPasswordSignin What status code response is sent in the case of an incorrect password here? Is it the 400, or the 401(but this one seems to be for invalid API keys)?
    r
    5 replies · 2 participants
  • d

    DlyaSeba365

    03/27/2022, 7:00 PM
    Hello, I created an UI for SuperTokens in SvelteKit for passwordless recipe and everything seems to work fine, but after I send code to /code/consume it returns 200 with data, but nothing happens, my cookies doesn't change. Should I do anything else, than just init supertokens?
    r
    139 replies · 2 participants
  • d

    Deleted User

    03/27/2022, 10:50 PM
    Is this a sort of Login System?
  • g

    GatoVuelta

    03/28/2022, 2:04 AM
    hey
  • r

    rp

    03/28/2022, 4:16 AM
    Yes. Supertokens is an auth provider
  • r

    Raghav Deo

    03/28/2022, 5:25 AM
    Can i use supertokens with spring framework and postgresql ?
    r
    2 replies · 2 participants
  • r

    rp

    03/28/2022, 5:39 AM
    With spring framework
  • d

    Deleted User

    03/28/2022, 6:12 AM
    Is there a Python front and backend demo / tutorial
  • r

    rp

    03/28/2022, 6:13 AM
    we have python backend examples: https://github.com/supertokens/supertokens-python/tree/master/examples We have nodeJS + react frontend / backend examples, but you can just replace the nodejs with python backend and leave the frontend unchanged: https://github.com/supertokens/supertokens-auth-react/tree/master/examples
  • d

    Deleted User

    03/28/2022, 6:17 AM
    Is someone up to help me later?
  • r

    rp

    03/28/2022, 6:18 AM
    Sure! I can help!
  • a

    anubhav

    03/28/2022, 7:51 AM
    I am using the recipe third party email password + passwordless in react when I click on the continue with google it gives me the following error Failed to load resource: the server responded with a status of 404 (Not Found) please help me.
    n
    r
    14 replies · 3 participants
  • d

    Deleted User

    03/28/2022, 8:08 AM
    So ive got MySQL setup and the files from the Python Backend installed
  • d

    Deleted User

    03/28/2022, 8:08 AM
    What would be the next step?
    p
    56 replies · 2 participants
Powered by Linen
Title
d

Deleted User

03/28/2022, 8:08 AM
What would be the next step?
p

porcellus

03/28/2022, 8:37 AM
What would be the next step?
So you have the DB running and your backend configured?
d

Deleted User

03/28/2022, 8:38 AM
so i need back and frontend right
i have mysql installed but no db or so setup
ive downloaded the python backend files
p

porcellus

03/28/2022, 8:40 AM
yeah, you should have both back and frontend. you can complete the setup for backend without having a frontend though.
d

Deleted User

03/28/2022, 8:41 AM
Alright
p

porcellus

03/28/2022, 8:41 AM
do you want to run the core yourself or would you want to use a hosted version?
d

Deleted User

03/28/2022, 8:41 AM
self hosted
p

porcellus

03/28/2022, 8:42 AM
you can then check out the quick setup -> core -> self hosted section of the docs about running the core
you can do with/without docker which is one decision point. I'd suggest going with docker and using the in-memory db first to test things.
(so this page basically: https://supertokens.com/docs/passwordless/quick-setup/core/with-docker)
d

Deleted User

03/28/2022, 8:48 AM
so now
i have the docker container running i guess
oh wait
what is the name of the container?
so i can stop it
now the core is running
p

porcellus

03/28/2022, 8:53 AM
well I think the name is auto generated if you didn't set one
the image is
supertokens-mysql
I think
d

Deleted User

03/28/2022, 8:53 AM
for the backend
do i need to download the example?
prob. easier right?
p

porcellus

03/28/2022, 8:54 AM
You can do it that way, but I'd just copy and paste from the quick setup guide
d

Deleted User

03/28/2022, 8:57 AM
on the form
what do enter under api domain, path and website, domain path
p

porcellus

03/28/2022, 8:59 AM
api domain is where the backend will be available, e.g.: http://localhost:3001
website path is where the frontend will be served e.g.: http://localhost:3000
and the 2 paths are optional, they are basically for customization purposes
d

Deleted User

03/28/2022, 9:01 AM
but the API Domain is the ip and port for the core right?
OOoo
it is what the api and domain will be
i think i actually did smth wrong
i have the mysql setup with the databse and tables, i ran the docker container (the core) and then there should be like mydomain:3567/hello but its not working
oh wait
i also need to enter the connection url in the python backend
p

porcellus

03/28/2022, 9:28 AM
yeah, but the
/hello
should work without the backend
that is served by the core docker container
d

Deleted User

03/28/2022, 9:28 AM
weird o.O
p

porcellus

03/28/2022, 9:29 AM
can you check if the container is still running/ maps the port?
d

Deleted User

03/28/2022, 9:29 AM
message has been deleted
its up
p

porcellus

03/28/2022, 9:30 AM
so if you check "localhost:3567/hello" it times out? or connection refused?
d

Deleted User

03/28/2022, 9:31 AM
It says Connection Refused
p

porcellus

03/28/2022, 9:32 AM
hmm, even with localhost?
d

Deleted User

03/28/2022, 9:32 AM
i cant check localhost :/
but wait
p

porcellus

03/28/2022, 9:32 AM
you can still run curl and wget on the server
d

Deleted User

03/28/2022, 9:32 AM
docker run -p 3567:3567 -e MYSQL_USER="root" -e MYSQL_PASSWORD="password" -e MYSQL_HOST="localhost" -e MYSQL_PORT="3306" -e MYSQL_DATABASE_NAME="supertokens" -d registry.supertokens.io/supertokens/supertokens-mysql
is that right?
like with MYSQL_HOST="localhost"
p

porcellus

03/28/2022, 9:33 AM
It looks correct
is mysql running?
so on the same machine where you are running the core you can:
curl http://localhost:3567/hello
because the reason you can't connect to it may be that your server doesn't allow connection to this port from the outside, which is fine if the backend will be running on the same host.
d

Deleted User

03/28/2022, 9:42 AM
hmhm wait
View count: 8