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

Tighter integration with feathers-authentication-management #393

Closed
eddyystop opened this issue Jan 6, 2017 · 2 comments
Closed

Tighter integration with feathers-authentication-management #393

eddyystop opened this issue Jan 6, 2017 · 2 comments
Assignees

Comments

@eddyystop
Copy link
Contributor

eddyystop commented Jan 6, 2017

feathers-authentication-management adds a isVerified flag to user. That can be used in a service hook to check a user is verified, after any checking that the user is authenticated.

Still it looks a bit wierd that the feathers-authentication ecosystem will authenticate a user with isVerified === false. I wonder if that flag, if it exists, should be checked by the ecosystem.

@marshallswain
Copy link
Member

marshallswain commented Jan 6, 2017

We definitely need a better way to integrate. Is the user present in the hook object of an afterCreate hook on the authentication service? If so, we could just register an after hook that checks the user and throws an error to keep the token from going out.

@ekryski ekryski changed the title Integrate with isVerified flag added by feathers-authentication-management Tighter integration with feathers-authentication-management Jul 24, 2017
@ekryski
Copy link
Member

ekryski commented Jul 24, 2017

I'd like to revisit this and look at tweaking feathers-authentication-management to be a bit more generic so that the user isn't required to define any specific model attributes. I see it being pretty minor tweaks and also easier once we have some of the work slated for Auth 2.0 complete.

@ekryski ekryski self-assigned this Jul 24, 2017
@daffl daffl closed this as completed May 22, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

4 participants