etyp / meteor-accounts-ldap

A Meteor package for logging in and creating users with LDAP credentials
MIT License
39 stars 23 forks source link

How to integrate with accounts-ui? #7

Open dpdonohue opened 9 years ago

dpdonohue commented 9 years ago

The name accounts-ldap makes me think this would work with the Meteor accounts system.
As documented here, https://atmospherejs.com/meteor/accounts-ui

I did this

meteor add accounts-ui
meteor add typ:accounts-ldap

Then I added this to my HTML template

{{> loginButtons}}

I do not see a login button. Instead I see a red message "No login services configured". Does this package support accounts-ui?

dpdonohue commented 9 years ago

I see that this cannot be done. Need to create your own login screen etc. Easy integration with the Metoer accounts system is only provided for oauth services.

aaroncalderon commented 8 years ago

@typ90 Would it be possible for you to share how did you implemented this package?

@dpdonohue how did you find out about the fact that only 0auth services are integrated this way?

Thanks.

dpdonohue commented 8 years ago

I looked at the Meteor codebase.

etyp commented 8 years ago

@dpdonohue @aaroncalderon Sorry - I haven't been maintaining this package properly. I plan on doing a new release in the coming days.

I'll include an unstyled template helper for the login in the coming release.

aaroncalderon commented 8 years ago

I cloned the accounts-ui-unstyled and kind of back engineered the interphase. Although it has lots of bloat ware code that is not used by this module at the moment.

It works. I will clean it up and then try to release it as a package or at least on GitHub

aaroncalderon commented 8 years ago

I was finally able to get the login working and the UI package as well.

I will try to clean the UI package a bit and publish a package to atmosphere if possible.

Thanks

rhizomatic commented 8 years ago

I'm having the same issue here, don't know how to integrate this package with accounts-ui. @aaroncalderon: Would be great if you could share your solution. thanks

aaroncalderon commented 8 years ago

@rhizomatic At the moment I do not have a polished solution. I just cloned the accounts-ui-unstyled and was able to get it working, but I had to change some specific code to make it work with my organisation's implementation of the Active Directory. I do not recall if I added any comments explaining what I did.

If I share it on atmosphere it would be marked as pre-Alpha. if that is ok with you...

unmonk commented 8 years ago

The following has login buttons. Im sure the two could be easily merged, I just dont have the time right now.

https://github.com/UK-AS-HIVE/meteor-accounts-ldap https://github.com/JackAdams/meteor-accounts-ldap

chazsolo commented 7 years ago

Could anyone speak to integrating this with AccountsTemplates? I realize it's not accounts-ui but it seems like AccountsTemplates is the way MDG is suggesting in their guide.

Update: I checked in AccountsTemplates and there is no support as of yet.