Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.

How to handle authentication with yoga? #34

Open
Weakky opened this issue Jan 25, 2019 · 1 comment
Open

How to handle authentication with yoga? #34

Weakky opened this issue Jan 25, 2019 · 1 comment

Comments

@Weakky
Copy link
Contributor

Weakky commented Jan 25, 2019

Description

Yoga could provide integrated helpers or best practices to handle authentication.

Passport.js seems like a great choice because of its number of supported services/authentication strategies.

Whether we use Passport.js or something else, we also need to think about:

  • Whether we expose authentication only through examples/best practices
  • Or we bundle some library/custom implementation with Yoga to better the experience

Let's use this thread as a place to discuss that feature 🙌

@wtrocki
Copy link
Contributor

wtrocki commented Jan 25, 2019

+1 for starting with examples first. It's always easy to pull some implementations into yoga at later stage.
Having example will help to see how abstractions will work. Auth can be bundled at any stage if there will be huge benefit and Yoga could abstract that in such a way that all users will benefit from it etc.

Premature abstractions are always hard to do right. With current template mechanism Yoga can also see how popular auth template is and made decisions based on usage.

@Weakky Weakky pinned this issue Feb 26, 2019
@Weakky Weakky unpinned this issue Mar 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants