Вопрос

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

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top