ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Standalone authentication of EE user details?

October 03, 2011 10:22am

Subscribe [3]
  • #1 / Oct 03, 2011 10:22am

    alexlampe

    5 posts

    We’re hoping to interface an app being developed for iPad with our EE website.

    Specifically, we need to check user credentials against the EE members table, and then return a JSON encoded string of various pertinent details.

    I’ve had a good trawl across the Internet, but can’t find any guidance on creating a basic script that will accepted POSTed username and password, and then validate. 

    This would be quite straightforward if our EE site had had MD5 encryption checked during install, but unfortunately it has been created with the default SHA-1 encryption setting.

    Can someone point me in the direction of something that might help?  (Mod, tutorial etc.)

    Thanks!

  • #2 / Oct 03, 2011 11:34pm

    Dan Decker

    7338 posts

    alexlampe,

    Not only are ExpressionEngine passwords encrypted, but the crypt is salted. Would you be able to employ the standard ExpressionEngine Login Form as part of your iPad app?

    Cheers,

  • #3 / Oct 04, 2011 5:06am

    alexlampe

    5 posts

    Hi Dan,

    Thanks for the response - yes I’ve been impressed by the security in place on EE by default! :(

    I had considered whether we could use the login form, but the problem is the App needs a non-standard response (just a JSON object containing certain relevant user fields) rather than the usual ‘you are logged in’ type page to be returned on successful login.  I can’t see a way of achieving this from within the Expression Engine framework?

    Thanks1

  • #4 / Oct 05, 2011 4:42pm

    Dan Decker

    7338 posts

    alexlampe,

    Perhaps you could develop an extension that would return your JSON response using the member authorization extension hooks. Do you think that might work?

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases