EDIT Originally I thought Oauth2 is the way to go but maybe it is not. I’ll leave that out of this question for now as it is confusing things.
I’m creating a mobile app (Android/iOS). I’d like the user to enter their credentials (user/pass) in the mobile device which would then get sent to my server (Joomla CMS) to verify the credentials and create/send a token. I don’t want to store the user/pass on the device just the token.
In addition this token needs to have a timeout to be refreshed when needed. Such as credentials have changed.
At this point I’m trying to figure out what the architecture of this will look like.
Are there any tutorials on how you can achieve this (ideally with Joomla)? Anything that someone could point me to?
The end solution is to create my own Joomla component. Pretty much everything is in my controller. Not the final code but something like this will work.
}
This represents a component called com_fooauth. Now the native app will send a query like this:
Kind of a short cut to put everything in the controller, but hopefully you get the idea.