Reputation: 685
I am using spring security plugin in my grails 2.3.1 app,
I want to expose my controller as rest api, So that mobile apps can access it.. so do i authenticate my users through my grails controller
Upvotes: 2
Views: 538
Reputation: 75671
Basic auth over SSL is common for REST APIs, and the plugin docs show how to configure Basic auth for part of the app, and standard form-based auth for user-accessible parts of the app. There's also a new plugin for REST + Spring Security - see http://grails.org/plugin/spring-security-rest and click through the "Documentation" button to see the docs.
Upvotes: 2