2

I'm working on the new CMS implementation project. We have ~4000 users in ExpressionEngine v 1.6.3 CMS.

The project requirement is, to let current EE members login to new CMS based on their encrypted credentials in EE.

Is the any way I can run an external php script utilizing Authentication Function from EE core $this->EE->auth->authenticate_username($username, $password)?

Any help will be appreciated.

Pawel

  • Can you clarify a couple details: is the new CMS in EE 2? – Jay F Sep 17 '13 at 21:52
  • $this->EE->auth->authenticate_username($username, $password) doesn't seems to be working with version 1.6.3 – user2184 Oct 13 '13 at 16:01
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. – Jeremy Gimbel Oct 14 '13 at 16:14
  • So.. was this ever figured out? – Justin Obney Aug 7 '14 at 14:01
5

I would suggest building a simple API module within the EE installation.

You've found the Auth library which should do exactly what you need, it's just a matter of exposing it, because there really isn't an easy way to take EE's authentication scheme out of EE.

So once you create a module, it'd simply be a matter of setting up an action ID within the module and having it accept the username and password via POST. Then you can have it return in whatever format you like (JSON, XML, etc).

Your new CMS can then use CURL to connect to the API you've created.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.