Closed jeffwils closed 6 years ago
Any plan to release the 3.0.0.M2?
@alvarosanchez
Thanks
I have also encountered this issue and am unable to find a suitable workaround. Spring Security wants to provide an HTML login form, which opposes the idea of the web-api profile.
The plugin needs to be split out into a web part and a non web-part, in the meantime the workaround is to add the GSP plugin to your application:
compile "org.grails:grails-plugin-gsp"
For some reason my commit closed this issue, but this issue is still valid and requires the plugin to be reworked and split into web and non-web parts
@jeffwils there does not appear to be a web-api
profile available:
| Available Profiles
--------------------
* angular - A profile for creating Grails applications with Angular 5+
* rest-api - Profile for REST API applications
* base - The base profile extended by other profiles
* angularjs - A profile for creating applications using AngularJS
* plugin - Profile for plugins designed to work across all profiles
* profile - A profile for creating new Grails profiles
* react - A profile for creating Grails applications with a React frontend
* react-webpack - A profile for creating Grails applications with a React frontend using Webpack
* webpack - A profile for creating applications with node-based frontends using webpack 2
* web - Profile for Web applications
* rest-api-plugin - Profile for REST API plugins
* vue - A profile for creating Grails applications with a Vue.js frontend
* web-jboss7 - A Profile for Creating a JBoss 7.1 EAP Project
* web-plugin - Profile for Plugins designed for Web applications
Would you be so kind as to clarify which profile is causing the issue?
Marking this as Cannot Reproduce
and closing.
I will be happy to reopen it if you would be so kind as to attach or link to a sample app which reproduces the problem.
Grails 3.0.7 Groovy 2.4.4 JDK 1.8.0_45 spring-security-core repo - http://dl.bintray.com/grails/plugins spring-security-core plugin - org.grails.plugins:spring-security-core:3.0.0.M1
When creating a new grails app with the web-api profile, then adding the spring security core plugin, starting the application produced the following error