Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meteor auth migration guide #334

Closed
marshallswain opened this Issue Oct 27, 2016 · 5 comments

Comments

Projects
None yet
4 participants
@marshallswain
Copy link
Member

marshallswain commented Oct 27, 2016

This is just something that I'm interested in doing, so if I've gotten busy and haven't done anything here in two months, please ping me and we might close it. :)

The tutorial: https://themeteorchef.com/recipes/roll-your-own-authentication/
The GitHub repo: https://github.com/themeteorchef/roll-your-own-authentication/tree/master/code

And here's a basic MongoDB doc that Meteor would create should you choose to use their accounts-password package.

{
    "_id" : "66ksHBcY8FjTHMQ3E",
    "services" : {
        "password" : {
            "bcrypt" : "$2a$10$9tdaeMHSlo10Xbs3vrdJhuto5H1issxKIQkX7Cgk4TH0O0Qbyg8PC"
        },
        "email" : {
            "verificationTokens" : [
                {
                    "token" : "Vtr5tE1jNnDLtLBg9714RoisBm-F2Qu9nHgoAlgG64a",
                    "address" : "email@example.com",
                    "when" : ISODate("2016-09-09T13:19:15.403Z")
                }
            ]
        },
        "resume" : {
            "loginTokens" : [ 
                {
                    "when" : ISODate("2016-10-19T15:52:22.925Z"),
                    "hashedToken" : "h1dhwJAIgtM0/f7qxNL9KfyJhUDH6B0qio+BKGyTuaA="
                }, 
                {
                    "when" : ISODate("2016-10-27T16:07:22.361Z"),
                    "hashedToken" : "o318zSXsGBjt01IhbbnjbWaIjW2Uf+gyn4i3PwoZl6U="
                }
            ]
        }
    },
    "emails" : [ 
        {
            "address" : "email@example.com",
            "verified" : true
        }
    ],
    "profile" : {},
}

@marshallswain marshallswain self-assigned this Oct 27, 2016

@ElegantSudo

This comment has been minimized.

Copy link

ElegantSudo commented Nov 12, 2016

This looks awesome, let me know if you ever get around to it.

@MHerszak

This comment has been minimized.

Copy link

MHerszak commented Dec 19, 2016

I just leave this here:

I am currently going through Meteors accounts-base, accounts-oauth, .. and I am getting kind a lost. There are many fragments bound to Meteor and are already available (in there own way) to Feathers. I am currently thinking about a simple hook type of system that obtains a Strategy and a token. Have you done any research on the requirements you could share?

@ElegantSudo

This comment has been minimized.

Copy link

ElegantSudo commented Jan 24, 2017

I've looked into feathers authentication and it's really straightforward.

There aren't any real "requirements", just read the docs and acclimate yourself.

The main reason Meteor developers get frustrated with it is because Meteor does practically everything for the developer, handicapping him/her to the system.

It sounds like you're dealing with an existing application - in which case you could either do a database schema migration or configure the existing feathers packages to work with your current user schema.

@MHerszak

This comment has been minimized.

Copy link

MHerszak commented Jan 24, 2017

I ended up using feathers-authentication-management.

@ekryski

This comment has been minimized.

Copy link
Member

ekryski commented Feb 20, 2017

I think I'm going to close this out. @marshallswain if you have the time and it becomes something you want to tackle, feel free to re-open. :)

@ekryski ekryski closed this Feb 20, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.