Questions tagged [spring-security-rest]

The Spring Security REST Grails plugin allows you to use Spring Security for a stateless, token-based, RESTful authentication.

213 questions
2
votes
0 answers

grails 3.0 angularjs spring security rest plugin getting 403 forbidden

I am trying to follow the tutorial at http://alvarosanchez.github.io/grails-angularjs-springsecurity-workshop/ with grails 3.2.0.M2 with angularjs profile. The build.gradle has the following compile 'org.grails.plugins:spring-security-core:3.1.1' …
Sap
  • 5,197
  • 8
  • 59
  • 101
2
votes
0 answers

grails - spring security oauth2 vs rest

I have site in grails, and now I need to add API support. Third party application will be using it to access resources. I thought of using Spring Security OAuth2 plugin (Plugin link) for that, but I would like, for now, to skip asking user to…
Boris
  • 726
  • 1
  • 10
  • 22
2
votes
1 answer

Grails Spring Security Rest Logout

I am using Grails 3.1.4 together with the Spring Security Rest Plugin 2.0.0.M2 for implementing a single page app with AngularJS. Login and validation is working perfectly fine, but when I call logout I get a 404 error. When debugging, I get an…
Tobi
  • 2,001
  • 2
  • 27
  • 49
2
votes
0 answers

Grails spring security rest plugin v1.5.3 - Refresh token flow

I have a REST API implemented using grails v2.5.2 and a client using AngularJS. I am using the JWT authentication that the plugin provides by default. I've set the token expiration as 3600 and I would like to refresh the access_token automatically…
2
votes
1 answer

insufficient_scope error using Grails spring security rest plugin

I have a standard grails web app using spring security and I want to expose a small portion of it as a REST API using the spring-security-rest plugin (version 1.5.1). Everything seems to be set up correctly, but any request I make comes back with a…
user817851
  • 219
  • 1
  • 3
  • 10
2
votes
0 answers

Grails + Spring Security Rest, Make POST Request

I am able to login(/api/login) and have been able to successfully make a GET request. However, I cannot seem to figure out how to make a POST request, and likewise I have not been able to logout (/api/logout). Controller: (com.example.test) static…
ibaralf
  • 12,218
  • 5
  • 47
  • 69
1
vote
0 answers

How to make a proper jwt authentification for rest api using spring boot security?

I want to make a rest API where some endpoints are protected by an authentication base on users roles. I also would like to use JWT token and to check roles of user. Furthermore, I have seen countless confusing things in internet that are either…
MrSolarius
  • 599
  • 11
  • 28
1
vote
1 answer

Spring security exception handling custom response

How is it possible to return a json instead a html? I got: HTTP Status 401 – Unauthorized