https://www.prisma.io/ logo
Join Slack
Powered by
# prisma-whats-new
  • l

    lpil

    03/18/2017, 2:53 PM
    With Auth0 it’s pretty much mandated to be one flow, unless you want to reimplement a lot of their login widget.
  • l

    lpil

    03/18/2017, 2:53 PM
    Bit of a faff having to handle this, an idempotent mutation would be great
  • l

    lpil

    03/18/2017, 2:55 PM
    Now my api interaction goes from declarative to procedural, which is a shame as graphql is really nice and declarative otherwise
  • s

    sorenbs

    03/18/2017, 3:00 PM
    I see what you are saying. Quick question - does your Auht0 lock look like this? Wouldn't it be trivial to only call the createUser mutation in the signup flow?
  • s

    sorenbs

    03/18/2017, 3:01 PM
    Quite often, we find, people want to ask for extra information when signing up a new user. As this information is required, there is no way to unify that in the schema.
  • l

    lpil

    03/18/2017, 3:03 PM
  • l

    lpil

    03/18/2017, 3:03 PM
    Simpler flow 🙂
  • s

    sorenbs

    03/18/2017, 3:03 PM
    aha 🙂
  • l

    lpil

    03/18/2017, 3:04 PM
    I can rework my query code to treat this error as an OK
  • l

    lpil

    03/18/2017, 3:05 PM
    A shame I need two different query executor thingies now, but that’s fine 🙂
  • l

    lpil

    03/18/2017, 3:05 PM
    Not quite what I want, but that’s the nature of third party software. Otherwise it’s great 😄
  • s

    sorenbs

    03/18/2017, 3:06 PM
    Ok, that should be a decent workaround. What would work better for you in this case - to have a mutation you could call with a Auth0 id_token that always succeeds wether the user exists or not, or to just be able to use the id_token directly in the Authorization header, and Graphcool automatically creates a user if doesn’t exist?
  • l

    lpil

    03/18/2017, 3:06 PM
    set the channel topic: Flexible backend platform combining GraphQL+ AWS Lambda
    👍 2
  • l

    lpil

    03/18/2017, 3:07 PM
    Oh the latter would be even better
  • l

    lpil

    03/18/2017, 3:08 PM
    What a nice idea
  • l

    lpil

    03/18/2017, 3:08 PM
    How would you tell that the token is an auth0 token?
  • l

    lpil

    03/18/2017, 3:08 PM
    On your side
  • j

    jundl77

    03/18/2017, 3:09 PM
    http://stackoverflow.com/questions/38035880/i-cant-import-kivy-in-python
    s
    • 2
    • 4
  • s

    sorenbs

    03/18/2017, 3:09 PM
    We validate it against the secret you provide when setting up the Auth0 Auth Provider. Would you mind creating a feature request for this? https://github.com/graphcool/feature-requests/issues
  • l

    lpil

    03/18/2017, 3:09 PM
    ooh nice.
  • l

    lpil

    03/18/2017, 3:09 PM
    I’m thoroughly impressed with the graph.cool team so far 😄
  • s

    sorenbs

    03/18/2017, 3:10 PM
    Thanks bowtie
  • a

    artyom

    03/18/2017, 3:30 PM
    hi @scott 🙌
  • s

    scott

    03/18/2017, 3:30 PM
    hey @artyom how are you? 🙂
    a
    • 2
    • 3
  • a

    artyom

    03/18/2017, 5:16 PM
    there’s @theom !! 🙌 hello! graphcool
  • s

    scott

    03/18/2017, 5:25 PM
    Not sure if I’m just missing it, but is there a way to set permissions based on ownership rather than just a user being authenticated?
  • s

    scott

    03/18/2017, 5:25 PM
    For example, I have a User model and a Contacts model, but only want authenticated users to be able to view their contacts
  • s

    sorenbs

    03/18/2017, 5:27 PM
    @scott This is currently part of our Beta Program. Please ping @nilan to join the program
  • s

    scott

    03/18/2017, 5:27 PM
    oh, ok perfect, thanks 🙂
  • t

    theom

    03/18/2017, 5:30 PM
    @artyom Greetings 👍
    👋 1
1...127128129...637Latest