API - authenticate users for an App


I’m creating an App for accessing an omeka site and want to have authenticated users in the App that match with the users in the omeka database. Does anyone know what is the best way to implement the authentication?

I was trying to use cookies but for some reason I can’t properly read the response cookies in the app…
My second try was to create another API resource for authentication, where a custom API controller would try to log in internally in the server and return the current_user() to the App, but i’m struggling with creating this controller.

Any tips or advice will be much appreciated!


Any solution found?
I’ve set up an Owncloud installation on my server to allow users to upload files to the Dropbox folder without using an FTP client. I’d love them to be able to access their Owncloud account with their Omeka credentials…