Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom authentication in Meteor.js

Meteor has a great authentication system with some wonderful OAuth packages. But what if one would like to use some custom authentication mechanisms? Like LDAP, or a private OAuth server, or whatnot.

So, more specifically, what would be the best way to customize login/logout processes while still using the Meteor's authentication core, SRP protocol, etc.? Some practical examples would be really appreciated.

like image 315
bredikhin Avatar asked Nov 03 '25 12:11

bredikhin


1 Answers

You can customize and make your own OAuth package that works with meteor's core packages, specifically accounts-base quite easily.

There is already an LDAP package on atmosphere (http://atmosphere.meteor.com) that you could use, though I have not used it myself. You would add these in with meteorite if you have not already installed it.

sudo -H npm install meteorite

To make your own package there are loads of examples references to git repos with source code on http://atmosphere.meteor.com. There is also a blog post on how to do this in more detail at : http://meteorhacks.com/extending-meteor-accounts.html

  • Meteor accounts-ldap - https://github.com/emgee3/meteor-accounts-ldap
like image 81
Tarang Avatar answered Nov 05 '25 14:11

Tarang