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
  • r

    rp

    12/16/2021, 7:41 PM
    Any specific reason to ask this? Or just curious?
  • i

    infrequent_emu

    12/16/2021, 7:59 PM
    Auth0 is having issues again. I was complaining to a friend about how we used to be trending towards making auth safer and easier with frameworks, but that as an industry we have shifted towards magical saas solutions that have pretty questionable trade offs. He's starting a company soon and asked me basic things about how auth works, which led me down the path of googling what sort of stuff is out there these days. I didn't know about keycloak until a couple weeks ago when I helped someone understand client certificates and build them for that, so I checked out their documentation a bit more and searched for alternatives and found you guys listed as an alternative.
  • r

    rp

    12/16/2021, 8:00 PM
    Ah i see!
  • r

    rp

    12/16/2021, 8:00 PM
    Interesting journey!
  • i

    infrequent_emu

    12/16/2021, 8:01 PM
    By questionable trade offs, I like the idea of trusting a third party to be highly available, to be super on top of security and to make best practices easy. When things go into feeling like lock in and rent seeking, that makes me really uncomfortable because it sets up for a long term relationship with an unhealthy power dynamic.
  • r

    rp

    12/16/2021, 8:02 PM
    Yea! Makes sense. That problem is actually one of the big reasons for us creating SuperTokens in the first palce.
  • i

    infrequent_emu

    12/16/2021, 8:07 PM
    That's good to hear. Are you considering (or do you have) an opinionated way for people to store their concept of a user in their app? There are way too many places out there that think using email as a unique key is safe or reasonable.
  • r

    rp

    12/16/2021, 8:08 PM
    We issue UUIDs per user that never change (for that user)
  • r

    rp

    12/16/2021, 8:08 PM
    You can of course change a user's email too via our API. And each user's email is unique too.
  • r

    rp

    12/16/2021, 8:09 PM
    But we use the unique UUID to ID a user post sign in
  • i

    infrequent_emu

    12/16/2021, 8:09 PM
    "And each user's email is unique too." - how to you handle untrustworthy third parties then?
  • r

    rp

    12/16/2021, 8:09 PM
    what do you mean?
  • i

    infrequent_emu

    12/16/2021, 8:11 PM
    a@gmail.com signs up with google. We also trust github for auth. Github gets hacked and the attacker logs in as a@gmail.com verified by github
  • r

    rp

    12/16/2021, 8:12 PM
    Ah i See. So we don't do automatic account linking for this exact reason
  • r

    rp

    12/16/2021, 8:12 PM
    Instead, what we now do is to create separate user IDs for someone who used same same email, but different providers
  • r

    rp

    12/16/2021, 8:13 PM
    But we do plan on enhancing that to warn the end user that they are about to create a new account and maybe they meant to sign in with another provider (which they had used to sign up earlier)
  • i

    infrequent_emu

    12/16/2021, 8:13 PM
    okay, cool -- when you said each users' email was unique I read that as linking
  • r

    rp

    12/16/2021, 8:14 PM
    Ah no. So for social login, the unique item is not the email, but the social provider's userID + a provider ID (like "google", or "github").
  • r

    rp

    12/16/2021, 8:14 PM
    For email password login, the email is unique
  • i

    infrequent_emu

    12/16/2021, 8:14 PM
    adding in group management things would be 🌈 amazing. Like tracking invites to alias@gmail.com that sign up as nonaliased@gmail.com
  • r

    rp

    12/16/2021, 8:15 PM
    I'm not sure I understand wgat tracking invites means.
  • r

    rp

    12/16/2021, 8:15 PM
    Can you elaborate more please?
  • i

    infrequent_emu

    12/16/2021, 8:19 PM
    admin1 invites a user with an email invitation that has a token in it to "aliasOfperson@gmail.com". The person clicks on the token, and already has a users on the app, under their non-aliased email. It's easy to have a hanging pending invite for admin1 to see. (I've run into a lot of places where the act of inviting someone creates an account that can only be authed to from the invite token, or something similar)
  • r

    rp

    12/16/2021, 8:20 PM
    So this would allow someone to be invited via some email, but then actually sign up via another email?
  • i

    infrequent_emu

    12/16/2021, 8:21 PM
    iff they were the same person
  • r

    rp

    12/16/2021, 8:21 PM
    Right.
  • r

    rp

    12/16/2021, 8:21 PM
    Interesting use case.
  • r

    rp

    12/16/2021, 8:21 PM
    When would this desirable though?
  • r

    rp

    12/16/2021, 8:22 PM
    Cause every invite system I have seen enforces the use of the same email to sign up that was used to generate the invite in the first place.
  • i

    infrequent_emu

    12/16/2021, 8:23 PM
    It's really common actually. If someone has susan.smith@gmail.com, get's married and changes their name, they'll just create an alias of susan.jones@gmail.com. If you invite her via susan.jones@gmail.com and use google auth, that works almost everywhere
Powered by Linen
Title
i

infrequent_emu

12/16/2021, 8:23 PM
It's really common actually. If someone has susan.smith@gmail.com, get's married and changes their name, they'll just create an alias of susan.jones@gmail.com. If you invite her via susan.jones@gmail.com and use google auth, that works almost everywhere
View count: 3