The Spring Security REST Grails plugin allows you to use Spring Security for a stateless, token-based, RESTful authentication.
Questions tagged [spring-security-rest]
213 questions
0
votes
2 answers
Spring Boot 403 forbidden with POST request in Tomcat 9
I am new to the spring boot and I am creating a web application. I am bypassing "/auth/login" URL without JWT token authentication.
I have created a controller which handle the login request and give the response.
When I call my web service with URL…

nil_2207
- 51
- 1
- 10
0
votes
1 answer
Configure antMatchers in Spring Security
I have this Spring Security configuration in Wildfly server:
@Configuration
@EnableWebSecurity
@Import(value= {Application.class, ContextDatasource.class})
@ComponentScan(basePackages= {"org.rest.api.server.*"})
public class…

Peter Penzov
- 1,126
- 134
- 430
- 808
0
votes
1 answer
Implement Spring Security with jdbcAuthentication using EntityManager
I want to implement Spring Security with jdbcAuthentication using EntityManager. But as far as I can see the only option is to use Hibernate Datasource.
@Configuration
@EnableWebSecurity
@Import(value= {Application.class,…

Peter Penzov
- 1,126
- 134
- 430
- 808
0
votes
2 answers
Configure Spring to use Database for authentication
I want to configure Spring Security to use database for Rest api requests. I tried this:
@Configuration
@EnableWebSecurity
@Import(value= {Application.class, ContextDatasource.class})
@ComponentScan(basePackages=…

Peter Penzov
- 1,126
- 134
- 430
- 808
0
votes
0 answers
Spring Authorization not kicking off
I have the following spring security xml file, which has authentication and authorization configuration. The problem here is the authentication works fine but the authorization is not kicking off, its not even retrieving role. I have worked on…

Raj_Mad9
- 26
- 1
- 6
0
votes
0 answers
Grails3.2.11 back-end issue on accessing secured API from mobile (android) app
It is a RESTful (Grails 3.2.11 back-end) application with spring-security-rest:2.0.0.M2 plugin.
It works fine with angular front-end.
On login from mobile (android) app, it gives me token back. But using the same token as Bearer in successive…

Chiranjib Karn
- 53
- 5
0
votes
1 answer
Grails Spring Security REST -- Getting session cookie
I am building a Grails app and am using spring-security-core-3.2.0 and spring-security-rest/2.0.0. All is working fine and I can login to my web-app and I can also use the JWT token to authenticate/communicate in a RESTful way. However, with the…

Chip L
- 53
- 7
0
votes
1 answer
How can I add newly signed up user in the Spring boot security config?
I am working Spring-Boot, Spring Security with basic Authentication. I will send login url from my client application written in AngularJS via RESTful API call.
Everything works as expected. All the users in the DB configured in the…

Gnik
- 7,120
- 20
- 79
- 129
0
votes
1 answer
Disable basic authentication for specific end point, and keep all other secured
Right now I configure web security adapter like -
@EnableWebSecurity
@Configuration
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.cors().and()
…

Jahid Shohel
- 1,395
- 4
- 18
- 34
0
votes
1 answer
Grails spring security rest inject tokenGenerator
I have a similar requirement like this post mentioned. :REST spring security - Manually authenticating a new user and getting access token
According to the accepted answer, the codes will be like:
class RegisterController {
def…

Junfeng Li
- 131
- 1
- 8
0
votes
1 answer
How to implement SSL in client side?
I am new to web development and currently I am developing an Rest API which is to be consumed by an IOS app. So I developed the API and also implemented jwt token with oauth2 security in it.Now I want to provide the API to be consumed by the mobile…
user6811693
0
votes
1 answer
JWT Spring security user authorization from request arguments
I am using JWT with spring security to handle the authorization for my REST API endpoints. In the following example the endpoint provides information about the user. Let's say I want only ADMIN users to be able to get the details of all the users,…

samvel1024
- 1,123
- 4
- 15
- 39
0
votes
0 answers
Can't connect to Grails v3 rest controller, get 403, access denied
I created a new grails v3 app, and added following dependencies to build.gradle:
compile group: 'org.springframework.security', name: 'spring-security-core', version: '4.2.1.RELEASE'
compile 'org.grails.plugins:spring-security-core:3.1.1'
compile…

WILLIAM WOODMAN
- 1,185
- 5
- 19
- 36
0
votes
0 answers
Integrate Spring Rest Services with Spring Security JWT deployed separately
I have a Spring JWT Project and Spring Rest Services which are deployed separately. I have to do authentication and authorization stuff by calling Spring JWT Service. I'm new to this though but I have good understanding. Any one having idea how to…

Safdar Akrami
- 245
- 1
- 3
- 12
0
votes
1 answer
Grails Spring Security Rest: restTokenValidationFilter does not work
I am using the Spring Security Rest plugin with Grails 3, but I am having trouble with the filterchain.
What I want to accomplish is that the security context is initiatized but anonymous access should still be possible.
My filterchain…

Tobi
- 2,001
- 2
- 27
- 49