SAGAR MANE
SAGAR MANE

Reputation: 685

how i use controller to rest api using in grails 2.3.1?

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

Answers (1)

Burt Beckwith
Burt Beckwith

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

Related Questions