Comments (8)
@discdiver thanks for sharing this, haven't seen it before!
I'm in the process of trying to convert to Flow Router now, but have gotten stuck on how best to handle authentication. I like the look of Router Layer, but my concern is trying to do too much at once (i.e. would it be better to just pick a solution and stick to it).
Despite its simplicity in most places, in some (like auth), Flow has added a bit more complexity/stuff to consider. If you have experience handling auth/have examples, let me know!
from base.
Thanks, Chef. I hear what you're saying on simplicity. Just seems like
everything is moving to Flow Router. As you mentioned, it's what the core
team seems to be giving the nod to, the vast majority of devs seem to
prefer it due to it's clarity and simplicity, ability to use it with React
and Angular, and problems with iron:router behaving unpredictably and
iron:router seems to have had a lull in its maintenance.
I am pretty newby to all this, but trying to set things up the best way
possible and anticipate the future a bit. I'm persuaded to throw my lot in
with Flow Router.
Here's an article on Authentication I just found a minute ago, while
searching for the link to a medium article in the comments to your flow
router snippet that I didn't see in the article or comments - might have
just missed it. haven't even checked out this article yet, but sounds on
topic for your concern.
https://medium.com/@satyavh/using-flow-router-for-authentication-ba7bb2644f42
https://medium.com/@satyavh/using-flow-router-for-authentication-ba7bb2644f42
Love you tutorials. The in-depth explanations are great. FYI, my main
question as I'm going through the ones with iron router is, "What do I need
to change to get this to work with flow router."
Have a great day,
Jeff
On Thu, Sep 3, 2015 at 1:15 PM, The Meteor Chef [email protected]
wrote:
@discdiver https://github.com/discdiver thanks for sharing this,
haven't seen it before!I'm in the process of trying to convert to Flow Router now, but have
gotten stuck on how best to handle authentication. I like the look of
Router Layer, but my concern is trying to do too much at once (i.e. would
it be better to just pick a solution and stick to it).Despite its simplicity in most places, in some (like auth), Flow has added
a bit more complexity/stuff to consider. If you have experience handling
auth/have examples, let me know!—
Reply to this email directly or view it on GitHub
#54 (comment).
from base.
Thanks, Jeff! I'll take a look at those links.
You're right, everything does seem to be moving that way. As much as I can, though, I want to ensure the simplest possible solution is used. For example, if it takes me a long time to explain how a feature works in something like documentation, there's a problem. In contrast, in Iron Router, the hooks feature is implemented in a way that's complementary to checking authentication status at the router level, so the problem doesn't arise there (though, that's not to say IR is the 100% desired solution moving forward).
On all fronts save for authentication, Flow Router is excellent. I understand that the decoupling of things like reactivity from the router is important, but the cost that's incurred by developers to build less-than-favorable solutions in service of that is a tricky one to navigate around.
I hear you, though! Will keep this open and post updates as I learn more/make progress :)
Feel free to post snippets/pull requests as you get stuff working too.
from base.
cool. will do.
I just read the meteor article I sent over and they make authentication
with flow router look easy.
Thanks again,
Jeff
On Thu, Sep 3, 2015 at 2:03 PM, The Meteor Chef [email protected]
wrote:
Thanks, Jeff! I'll take a look at those links.
You're right, everything does seem to be moving that way. As much as I
can, though, I want to ensure the simplest possible solution is used. For
example, if it takes me a long time to explain how a feature works in
something like documentation, there's a problem. In contrast, in Iron
Router, the hooks feature is implemented in a way that's complementary to
checking authentication status at the router level, so the problem doesn't
arise there (though, that's not to say IR is the 100% desired solution
moving forward).On all fronts save for authentication, Flow Router is excellent. I
understand that the decoupling of things like reactivity from the router is
important, but the cost that's incurred by developers to build
less-than-favorable solutions in service of that is a tricky one to
navigate around.I hear you, though! Will keep this open and post updates as I learn
more/make progress :)Feel free to post snippets/pull requests as you get stuff working too.
—
Reply to this email directly or view it on GitHub
#54 (comment).
from base.
Following up on flow routing permissions:
Not sure you want to go this way because it creates more dependencies on
external packages, but it does seem to simplify authorization with flow
router and it's a super popular package:
https://github.com/alanning/meteor-roles/tree/1f0dcf4d928dc735ffe0ab6dd2447364adf685ea#user-content-usage
Have a good weekend,
Jeff
On Thu, Sep 3, 2015 at 2:27 PM, Jeff Hale [email protected] wrote:
cool. will do.
I just read the meteor article I sent over and they make authentication
with flow router look easy.Thanks again,
JeffOn Thu, Sep 3, 2015 at 2:03 PM, The Meteor Chef [email protected]
wrote:Thanks, Jeff! I'll take a look at those links.
You're right, everything does seem to be moving that way. As much as I
can, though, I want to ensure the simplest possible solution is used. For
example, if it takes me a long time to explain how a feature works in
something like documentation, there's a problem. In contrast, in Iron
Router, the hooks feature is implemented in a way that's complementary to
checking authentication status at the router level, so the problem doesn't
arise there (though, that's not to say IR is the 100% desired solution
moving forward).On all fronts save for authentication, Flow Router is excellent. I
understand that the decoupling of things like reactivity from the router is
important, but the cost that's incurred by developers to build
less-than-favorable solutions in service of that is a tricky one to
navigate around.I hear you, though! Will keep this open and post updates as I learn
more/make progress :)Feel free to post snippets/pull requests as you get stuff working too.
—
Reply to this email directly or view it on GitHub
#54 (comment).
from base.
Not against adding something like this, but like you've said, you're adding additional dependencies to fix a problem elsewhere. I've considered adding roles for other reasons, though, so may be a nice overlap with some other features.
from base.
Notes:
- Make sure to grab reset token using Flow's router params.
from base.
What has happened with flow router? It seems that we use react router now?
from base.
Related Issues (20)
- When editing a document, you sometimes ends up editing another one HOT 1
- Import components from react-bootstrap/lib rather than react-bootstrap for performance HOT 1
- users.fetchGravtarUrl is running indefinitely
- Can route to "/login, /signup" page, when User logged. HOT 1
- Bump Meteor version to 1.4.2.7
- Can we strip any packages that rely on deprecated dependencies? HOT 1
- Bump Meteor to 1.4.3.2
- Glyphicon don't work HOT 2
- Cannot add a new Document (warning: Use of getPreventDefault() is deprecated. Use defaultPrevented instead). HOT 2
- Get error when tried to use `SimpleSchema2`! HOT 1
- Migrate to PropTypes package on NPM
- Figure out how to handle bcrypt dependency
- Bump versions
- Review PR "Upgrade to react-router v4"
- React Bootstrap deps throwing React errors in browser console HOT 1
- Passing Meteor.user() to a component? HOT 2
- Add usage of Loading component back into app HOT 1
- React Developper Tools HOT 2
- Q - Is it possible to use bootstrap themes with Base? HOT 2
- How to deploy the meteor chef with mongodb to google cloud?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from base.