Hey Mike! For applications requiring social integration with FB/Twitter, etc... server-side auth token generation is needed. What are your thoughts on either:
- Sending the authToken to the client on socket connection (less secure), which can be then used to filter rows per your examples.
- Extending server-side validations (so client needn't know its own auth token) to automatically filter only rows containing the authToken for specific queries, eg:
// client observe
myMessages: new QueryRequest({r.table('messages'), validateAuthToken: true, changes: true, initial: []})
// server validate
r.table('messages')
.changes({include-initial: true})
.filter(r.row('authToken').eq(session.authToken)) // automatically filtered
Is this already possible?
Really digging your software,
Keith
Hey Mike! For applications requiring social integration with FB/Twitter, etc... server-side auth token generation is needed. What are your thoughts on either:
Is this already possible?
Really digging your software,
Keith