3 ms·
Is data validation and permissions/authorization easy to do client-side? That was my main concern when I was looking into firebase a while back. Just wondering
by throwaway_bad 7y ago
Is data validation and permissions/authorization easy to do client-side?
That was my main concern when I was looking into firebase a while back. Just wondering if the situation has improved.
- nslog 7y agoPretty sure it doesn't stack up to Amplify + AppSync: https://aws-amplify.github.io/docs/cli-toolchain/graphql#auth https://aws-amplify.github.io/docs/cli-toolchain/graphql#aut...
- chris_st 7y agoYou REALLY want to do data validation and permissions/authorization server side. Never trust the client! It's fine also to do client-side checking, but you must do server-side. It's moderately easy with Firebase (haven't used Firestore). I'm definitely interested to see if there's anything for AppSync beyond the checking that the GraphQL schema does (NOTE: I am not an expert in GraphQL schema, it may be a lot more powerful than I know), or if you have to write your own Lambda at that point. Does look like that's easy, though! I've been using the serverless.com tools for quite a while now, and they're fantastic. Really glad to have this!
- appwiz 7y agoYou can use a combination of multiple auth schemes for coarse grained authorization. But, you can also implement your own fine-grained checks at the resolver level. See the AppSync Security documentation at https://docs.aws.amazon.com/appsync/latest/devguide/security.html https://docs.aws.amazon.com/appsync/latest/devguide/security... (I led the team that built AWS AppSync).
- chris_st 7y agoInteresting, thanks!