Sample code available at: https://github.com/alvarosanchez/grails-angular-springsecurity-gr8days-warsaw
Grails 3.1 enhances and improves the profile system introduced in Grails 3.0. One of the new profiles ease the creation and development of applications where the the front-end is an Angular JS application, and the backend is a Grails REST API.
In this session, Álvaro (member of the Grails team at OCI, Grails committer and author of several plugins) will demonstrate how to use the Angular profile to create an application using Grails 3.1, Angular JS and Spring Security REST.
6. Grails 3 status update
• v3.1.4 is the latest stable version.
• v3.2 is the current development version.
• Older versions:
• v3.0.15 for 3.0.x line.
• v2.5.4 for 2.5.x line.
7. Grails 3.0 recap
• New architecture.
• Spring Boot, Gradle, profiles.
• Same philosophy.
• Conventions, DRY, plugins.
8. Grails 3.1 recap
• Spring Boot 1.3, Spring 4.2.
• Massive improvements to profiles.
• Packaging and publishing.
• REST and Angular JS profile.
• JSON views.
• GORM 5.
30. Spring Security REST
• Compatibility layer over Spring Security Core.
• Login and logout REST endpoints.
• Token validation filter.
• Stateless by default, with JWT (signed and encrypted)
• Memcached, Redis, GORM and Grails Cache token storages.
• Implicit grant support through 3rd party providers.
• RFC 6750 Bearer Token support.
31. Create the project
$ grails create-app -profile angular
-features hibernate,json-views,security todo
| Application created at /tmp/todo