Can you please suggest me best way to implement restful web services for user actions, I was looking into Joomla format=json things. I want core Joomla way :)
Have you tried looking into this service: https://techjoomla.com/rest-api-for-joomla
Related
I have been searching for the best way to build an application using Angular 4 (client application running over apache2), Spring Boot (Rest Controller) and Social and Local login.
I am kinda new to all of this, and I've be looking around for about one month and still have not a good idea how to implement that! Couldnt find a good tutorial for the tecnologies mentioned above...
I need to be able to let the user login via system's own login and social login like facebook and google. Could someone please point at the right direction?
I am not sure if that I am on the right track... I thought that would be easy, but I feel very confuse and dont see how to integrate the response from spring with my angular application. And the login with social networks will not be direct with the angular application. The user will authenticate with facebook, for example, and when facebook redirect to spring, Ill retrieve the user associated to that social networks account and return that to my angular application. In the angular 4 application, Ill should be possible to invite friends and use some other social networks related features.
Here are some of the tutorials i've read:
http://www.baeldung.com/angular-4-upgrade-for-spring-security-oauth/
https://spring.io/guides/tutorials/spring-boot-oauth2/#_social_login_click
Can someone help me, pointing to the right direction, or placing a good tutorial or anything that would help?
I ended up by just using an angular module called ng-social-login. At the backend, I called 'https://graph.facebook.com/me' passing the token that came from frontend.
Thats all. Using spring social wasnt really a good idea at all
I am not sure if you can use spring social with Angular4 as front end. you might want to explore direct call from backend server to facebook graph API with tokens.
Easy way is to use Angular4 and Javascript SDK provided by facebook, G+, twitter.
I would like to create an AngularJS application, that will communicate with backend of ZF2.
How can I make user's authentication? Please show me an easy example.
Thanks
Take a look at https://github.com/angular-app/angular-app - sample app.
There is a good security model in it.
I have been studying RESTful web services for a while. My question is, despite how great it is, should every part of the website use RESTful style?
For example, yes I can create a User by POST->/user. If my website is similar to Twitter that after registration, users will be guided to a page to initiate their choice of broadcasts (kind of like on Twitter, you follow people). How do you name this initialization using RESTful style? Very difficult!
So is RESTful style for APIs only? Or should it be used throughout the site?
I'm building a simple iPhone app that synchronizes to a webservice served by Symfony 1.4. This app requires the user to be logged in.
My question is, how can the user log in Symfony from the iPhone app? And how can I keep the session opened through the next petitions? Is this secure?
Chapter 15 of the Practical Symfony book talks about webservices, but I can't find any guide about sessions.
Thanks in advance
You can use SOAP web service also. But this is little complex. You can send the file attached to XForm and Post to the service
Detailed implementation of SOAP in PHP
http://www.vankouteren.eu/blog/2009/03/simple-php-soap-example/
You can build a rest service for symfony modules. You can get login through REST service.
Your example service will be like this
www.example.com?username=user&password=pass
I want to configure a simple webapplication to support an iphone app to connect with it in RESTFUL ways. Initially have a user login session enabled from the iphone to the web app. I'd like the iphone app to send a NSURL call to the webapp, with user and password and have the webapp respond if the suer exists or not. Pretty simple. And I want to do it with web2py. Is this possible? Any clues?
I think you should post it to web2py group on google groups.
web2py#googlegroups.com
I know this question is a bit old now, but Massimo recently posted a video demonstrating a new experimental RESTful API for web2py. See also the Google groups posting "video about new RESTful APIs" .