Skip to content
This repository was archived by the owner on Mar 22, 2022. It is now read-only.

Meteor auth migration guide #334

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

Meteor auth migration guide #334

marshallswain opened this issue Oct 27, 2016 · 5 comments
Assignees

Comments

@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
Copy link

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

@MHerszak
Copy link

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
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
Copy link

I ended up using feathers-authentication-management.

@ekryski
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 as completed Feb 20, 2017
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants