Sign up ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

I have an iOS App which currently pulls in all the data from the MongoDB using a Node JS server. Currently my API / my node server handles all the data manipulation the iOS app/Swift only displays the data within the app. My server carries out all the functions on the data being returned from mongoDb.

I have a Joomla website where all my users are registered and have their own username and password.

My app has a login screen, where there are username and password fields. I want that the user enter their Joomla login details ( i.e Username and password ). And only and only if they are registered on my Joomla site they will be allowed access to my App and view the data being pulled in from mongoDB.

Currently my entire app is running Javascript, NO PHP!

Is there a way that I can authenticate users from my iOS App?

Thanks in advance.

Best Regards,

share|improve this question
    
why didn't you ask at Stack Overflow? meta.stackexchange.com/a/129632/165773 –  gnat Aug 12 at 14:01
    
@gnat because in my experience if you don't show them what you have done so far or show any kind of code they mark the question down. I can't show any code because I have literally no idea how to do it. –  user2190986 Aug 12 at 14:02
    
So why can't your Swift code Post the login name/pw to your Joomla site & get a response back? –  Dan Pichelman Aug 12 at 14:18
    
@DanPichelman Thank you for the reply. You are correct I can use swift to authenticate the user. But thing is I don't how to do it in both swift or javascript. As joomla is a completely different system with a completely different structure. –  user2190986 Aug 12 at 14:22
    
From the end user's point of view, Joomla is (I think, I'm not a Joomla expert) just another web application with a login screen. You should be able to pretend to be a user and just log into the site as if you were a web browser. –  Dan Pichelman Aug 12 at 14:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.