Domanda

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

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top