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
0
votes
1 answer

Spring Security as a micro service

My Application design is something like below: Browser---calls----> Web MicroService ----calls---> REST micro service REST Client --calls--> REST micro service. I wanted to use spring security as an entry point for the application to authenticate…
Nitish Bhardwaj
  • 1,113
  • 12
  • 29
0
votes
1 answer

How do I get controller method params when using @Secured closure?

I have successfully set up my Grails application to authenticate the user. I map controller method arguments using URL params, in my UrlMappings.groovy: "/$source/owner/$ownerId/show"(controller:"myController", action: "show", method: "GET") How do…
RMorrisey
  • 7,637
  • 9
  • 53
  • 71
0
votes
1 answer

Grails, Spring Security Rest Plugin, Cannot invoke method loadUserByToken() on null object

I am trying implement token based authentication using Spring Security Plugin (2.0.0) and Spring Authentication Rest Plugin(1.5.3) in grails framework(2.5.0). I set header field "x-auth-token" to token and post to target controller URL. However, IDE…
Xixin He
  • 11
  • 4
0
votes
1 answer

Grails 3.1.7 Spring Security Issue when create new User by GORM Scaffolding

I am doing my firsts steps in Grails (version 3.1.7), and I am doing an application which needs user authentication. This app is a web application that also provide some REST functionality, so I need a web login and a "rest" login with token. I am…
0
votes
1 answer

Grails spring-security-rest JWT token generated on server and the one received on client do not match

I am trying to implement grails-spring-security-rest plugin for a Grails 3.1.7 project. The JWT token generated on the server does not match the one returned to the client. I also tried validating the returned tokwn on https://jwt.io/ but I get a…
bhushan154
  • 13
  • 6
0
votes
1 answer

Spring security service's get current user returns incorrect user

When User A logs into my application, then logs out, then User B logs in, springSecurityService.getCurrentUser() returns User A's domain object. My front end uses an api end point that comes with the spring-security rest plugin to authenticate and…
Orca Ninja
  • 823
  • 1
  • 15
  • 29
0
votes
0 answers

Spring Security Restful Application with Custom User Authentication

I am trying to accomplish Spring security token mechanism with custom user authentication, but I can't configure Spring because of restful application doesn't have form login page. When a user post a request to /authenticate page with username and…
olyanren
  • 1,448
  • 4
  • 24
  • 42
0
votes
1 answer

cURL request with custom X-Auth-Token header Redirects to login page

I am using Alvaro's greach2014 repo to experiment the behavior of Spring Security Rest plugin. I can login to the application and generate authentication token. However, when I try to send a get request, I am being redirected to login page. Here is…
Ejaz Ahmed
  • 654
  • 4
  • 17
0
votes
1 answer

Spring Security for RESTful API

I'm building a restful API using Spring 4.1.6 and spring-boot-starter-data-rest. To make the rest api fully functional I need the last piece of the puzzle: security. Now I noticed spring has it's own spring-security-* packages that can aid with that…
alexg
  • 902
  • 11
  • 37
0
votes
2 answers

Disable RestAuthenticationFilter - Grails Spring Security Rest Plugin

I'm using Grails v2.4.2 with spring-security-rest, spring-security-core, and spring-security-ui plugins. I'm trying to disable the RestAuthenticationFilter that comes with spring-security-rest so that I can write a custom Authentication Filter that…
Jeremy Wagner
  • 485
  • 4
  • 9
  • 19
0
votes
0 answers

Spring security rest plugin: token based authentiction

I am trying to get successfully integrate Spring security rest plugin But I am constantly failed,I am using the memcahed for token storage. Config.groovy Setup which I used to implement the plugin is : //login end point…
ABC
  • 4,263
  • 10
  • 45
  • 72
-1
votes
1 answer

Spring security post v5 - how to get authentication manager for filter

I am using Spring security 6.1.3 and Spring boot 3.1.3. For learning purposes, I am trying to connect to the secured service via Basic Auth and receive a JWT token. I keep getting a null AuthenticationManager, any way I try to create…
CJJ
  • 199
  • 1
  • 2
  • 8
-1
votes
1 answer

CreateProcess error=206, The filename or extension is too long while using Spring Security

I am using JDK v.1.8, Grails v.3.3.10. I am trying to implement some of the endpoints of my app as rest and remaining as normal web pages URL. So to achieve this added below lines in build.gradle file `compile…
Deepak Gupta
  • 45
  • 1
  • 7
-1
votes
1 answer

Spring Boot Form Login Custom UserDetailsService authorisation not working

I am a beginner at Spring Boot and really struggling to get this. I am not finding Spring boot's security API very intuitive at all, but I'm trying to get it. I am going to use MySql with JPA to get Users from the Database, But initially just to…
-1
votes
1 answer

Restriction/lock down all Post/Delete Rest API end points based on the condition

I am looking options to secure my rest end points based on the condition. In our current app all users are assigned to various tasks. User can perform different actions on tasks like create new notes, update notes, delete notes, update task…
1 2 3
14
15