Can we use shiro with angular 8 based application. Currently we have spring thymeleaf based application with shiro. We are converting it to spring rest and angular based application. Now we need to include the authenication mechanishm for UI. Can we continue using shiro?
Yes, just render your login form with Angular instead of Thymeleaf.
Related
I am trying to build a zend framework application tied to angular. So I am thinking to go with the RESTful approach. Do you have any references on examples on how to this securely?
I would suggest looking at Apigility (Created by Zend and built on top of the framework) https://apigility.org/ if you want to build RESTful API's with Zend Framework.
If you want to build APIs direct with Zend Framework you could lift a lot of ideas for authentication and authorization from the Apilgity docs https://apigility.org/documentation/auth/intro
I am implementing a new spring-boot application with mongoDB, earlier worked with djangoAdmin. Looking for a similar solution which can easily generate management UI for all classes decorated with #document.
Have you seen JHipster?
It uses an Angular frontend with a Spring Boot backend but comes with a ton of admin functionality right out of the box. This includes the turn-key CRUD operations like you mentioned.
There is http://lightadmin.org project. But it currently supports only Spring Data JPA.
Whether Apache Tiles combination is suitable to work with Spring MVC, and Hibernate for REST full Services, Form validation, and Hibernate-Session support.
Any other alternative for Apache Tiles?
An application which is developed by Symfony 2 should retrieve data through a REST Web Service from a web site which is developed by Drupal.
How should the REST web service be developed?
Ok, so if I understand correctly you have two services:
Symfony2 app - requires data
Drupal app - has data
So you need to develop an API for Drupal which will be accessed by the Symfony2 app.
Now, I should tell you, this is a very beginer question. So you should start at the beginning.
Research the following topics:
"What is an API"
"What is a REST service"
"How to get data from an API with PHP"
then you need basics of Drupal module development and more specifically Drupal API module development. You'll need to know the version od Drupal as 7 and 8 differ quite a bit.
Building REST service with Drupal is documented https://www.drupal.org/documentation/modules/rest. Basically, you expose Drupal internal data models (called entities) through a REST API using JSON as format. On the Drupal side there is no code to write, everything should be configurable from the UI. When using Drupal 8, the configuration is exportable using the built-in Configuration Management. With Drupal 7, you should be able to export the configuration as code using the Features module.
I'm creating a web application containing RESTful webservices and I was wondering how I can properly integrate HDIV with this part of my webapp.
For now, I'm defining each webservice URL as startPage:
<hdiv:startPages>/ws/ws1,/ws/ws2,...</hdiv:startPages>
Is there a way to change that? does <hdiv:startPages>/ws/*</hdiv:startPages> or something like that exists?
You can use Java patterns to define start pages:
<hdiv:startPages>/ws/.*</hdiv:startPages>
Anyway, you can try Spring HATEOAS and Hdiv's experimental integration to securize the REST services.