Skip to main content
Filter by
Sorted by
Tagged with
2 votes
0 answers
66 views

I'm using Grails 6.2.0 with the Spring Security Core 6.1.2 and Spring Security Rest 5.0.0 plugins. I configured the filters as recommended in the documentation (or at least how I understood it): ...
nicu's user avatar
  • 21
0 votes
0 answers
23 views

I tried to authenticate rest api controller with jwt and other without jwt. I am able to get the login response for the rest but all other calls are failing with error while extracting the username ...
user2503849's user avatar
-5 votes
1 answer
163 views

We are facing an issue with a malicious user who has details about how our website works. Using the developer tools in the browser, the login and subsequent APIs are studied and a mobile app is built ...
lives's user avatar
  • 1,225
-1 votes
1 answer
1k views

I have a problem with Spring Security. When I'm trying to authenticate an user on my application, I'm redirected back to signin.html. After debugging, I saw that even if I'm instantiating ...
ionut logofatu's user avatar
1 vote
0 answers
619 views

I'm implementing spring boot security in our Java 17 project which uses Swagger 3. The login procedure appears when navigating to the swagger-UI before we can call one the endpoints. Which is normal. ...
DDD1's user avatar
  • 11
0 votes
1 answer
94 views

I have an application that uses Grails 3.1, Spring Security, and Spring Security REST. In my User entity, I have the accountExpired field, which, when set to true, prevents the user from accessing the ...
Victor Soares's user avatar
-1 votes
1 answer
2k views

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 ...
CJJ's user avatar
  • 199
0 votes
0 answers
767 views

When I request APIs in POSTMAN protected by Spring Boot Security, I get the following error: Unauthorized error: Full authentication is required to access this resource . But in Swagger, things are ...
anar1501's user avatar
0 votes
1 answer
56 views

I am using grails-5.2.5 to migrate an application from grails-2.5.2 version. In grails-2 version there is a class RestVehicleTrackingController which extends RestfulController. The purpose of the ...
Sumon Bappi's user avatar
  • 2,019
0 votes
0 answers
62 views

i have this spring security config, the idea is secure the endpoint for the only the user with the role "CARD-OWNER" have access to the data @Configuration @EnableWebSecurity public class ...
nikifor_23's user avatar
1 vote
2 answers
2k views

is there any way to extract Keycloak Principal in spring boot 3 using oauth? With older version we accessed like below, KeycloakAuthenticationToken authentication; try { authentication = ...
Abhishek Kotalwar's user avatar
0 votes
1 answer
176 views

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 ...
Deepak Gupta's user avatar
1 vote
0 answers
364 views

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 ...
MrSolarius's user avatar
0 votes
2 answers
651 views

Here we need to find a mechanism on how to generate an api key and store it in a database in encrypted value and all requests to the api need to pass as a header called API_KEY and this value will be ...
Girija Dash's user avatar
1 vote
1 answer
2k views

How is it possible to return a json instead a html? I got: <!doctype html> <html lang="en"> <head> <title>HTTP Status 401 – Unauthorized</title> <...
emoleumassi's user avatar
  • 5,169
0 votes
1 answer
551 views

I am using the Spring – REST Controller tutorial which works just as advertized. I then added a JavaScript ajax snipped which sends a POST request that works too. After that I added authentication to ...
nn4l's user avatar
  • 975
0 votes
1 answer
483 views

I am trying to implement a form based authentication. Authentication is based for the Users is based on Roles ADMIN and USER. When I run my custom login url .loginProcessingUrl("/admin/login"...
iTchTheRightSpot's user avatar
2 votes
2 answers
1k views

I am trying to implement the web security configuration without implementing the deprecated WebSecurityConfigurerAdapter. But when I try to authenticate the User AuthenticationManager gives me ...
Ahmet Yasin Türkyılmaz's user avatar
1 vote
0 answers
1k views

I am trying to implement a custom token based authentication with authentication filter: public class AuthAuthenticationFilter extends AbstractAuthenticationProcessingFilter { @Override public ...
Noobybooby's user avatar
1 vote
0 answers
2k views

In order to protect my Rest API endpoints, I implemented Spring Security using JWT authentication. My code "works" without any issues/exceptions but it would be great if I could get my ...
user9492428's user avatar
1 vote
2 answers
1k views

I have a REST Controller in a Spring Boot application which receives a file uploaded from the Angular front-end. Before adding Spring Security it worked fine. After I have added it, it does not work, ...
Dreamweaver2012's user avatar
0 votes
0 answers
256 views

I have a circular dependency forming on my WebSecurityCongfig. I have tracked it down to the UserDetailsService and once I remove it it builds but I cannot perform jwt filter because of it. The ...
Darius Corpodean's user avatar
0 votes
2 answers
655 views

I am working on a Spring Boot protecting my APIs using Spring Security and JWT tokens and I have the following iusse. I have an API handling endpoint like this: http://localhost:8019/api/admin/user/54/...
AndreaNobili's user avatar
  • 43.3k
3 votes
0 answers
3k views

From this Spring Security reference documentation: 5.2.1 -> Table 17.1. Standard Filter Aliases and Ordering It seems 5.x added more filters to the chain then in 3.x. Or something else I should ...
samshers's user avatar
  • 3,780
1 vote
1 answer
5k views

I have a Spring Boot application which has some endpoints: /.wellknown which does not require any authentication and open to public /callback which requires mTLS (only cert authentication). For the ...
dheeraj's user avatar
  • 305
0 votes
1 answer
669 views

I am using the spring security annotation @CurrentSecurityContext to inject the authentication object. This works well when the application is running, but in a @SpringBootTest it always injects null, ...
edbras's user avatar
  • 4,434
2 votes
1 answer
4k views

I am pretty new in Spring Security and I am working on a Spring Boot project that uses Basic Authentication in order to protect some APIs. I am starting from an existing tutorial code (a Udemy course) ...
AndreaNobili's user avatar
  • 43.3k
0 votes
2 answers
884 views

I've been following a spring security example but I cannot make sense of it. A simple RestController replying hello on a GetMapping("/hello") with a 200 status code. Once I change it to a ...
1174's user avatar
  • 131
1 vote
0 answers
1k views

I have ignored route throwing a runtime exception but spring security converts it into 403 forbidden exception. I just want it to show my exception with msg in response body as it was showing before ...
Girish Arora's user avatar
0 votes
0 answers
799 views

I have a spring boot application where i have added WebSecurityConfigurerAdapter. I want to have the response header strict-transport-security: max-age=16000000; includeSubDomains; preload; I have ...
Spartacus's user avatar
  • 454
3 votes
1 answer
3k views

I was exploring spring security and tried to build a small application wherein I have a an entity name User and a userRepository having a one declared method findByUserName(String userName) @Entity @...
Aditya's user avatar
  • 1,108
1 vote
1 answer
1k views

This is a conceptual question about the fact, that authentication has different grades in spring security. There is a grade for anonymous authentication also called IS_AUTHENTICATED_ANONYMOUSLY and ...
Eugen Mayer's user avatar
0 votes
1 answer
2k views

I have spring boot - angular application My server port is 1234 (example). But now I have setup ssl Steps: created self signed cert using keytool and added my p12 cert file into resources folder ...
Kris Swat's user avatar
  • 1,094
0 votes
1 answer
2k views

When integrating spring session with spring security I'm not sure how the SecurityContextImpl#Authentication is supposed to be populated when a session is identified by spring session. Context: The ...
Eugen Mayer's user avatar
5 votes
1 answer
4k views

I have some users who are accessing some APIs with valid JWT token but because their tasks on their side take much more time than the token expire time, when they come to the API again, the JWT token ...
Adil Karaöz's user avatar
0 votes
1 answer
935 views

Summary Updated Spring boot project from 2.1.5 RELEASE to 2.4.5 Version. It automictically updated all Spring Security dependencies from version Spring-Security.. 5.1.5 RELEASE to Spring -Security.. 5....
user16093823's user avatar
0 votes
1 answer
39 views

I am working with two Security configuration by extending WebSecurityConfigurerAdaptor like below @Configuration @Order(100) public class CustomerSecurityAppConfiguration extends ...
zilcuanu's user avatar
  • 3,755
0 votes
1 answer
679 views

I am configuring spring security in my project using jwt token. I am sucessfully generated jwt token and accessing it from front end. In my spring boot REST APT I have several controllers with all ...
VJain's user avatar
  • 1,069
3 votes
4 answers
36k views

I want to use Spring Boot Security in my project by creating a simple login screen but i get these error while running y application Description: Parameter 1 of constructor in com.panchmeru_studio....
VJain's user avatar
  • 1,069
0 votes
1 answer
2k views

Problem: My java springboot application receives JWT token from external system to authenticate a user with their external identity management provider which returns the user details upon success. ...
Sumit Kumar's user avatar
-1 votes
1 answer
2k views

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 ...
ptmp_727's user avatar
  • 105
0 votes
1 answer
873 views

In my app I'm using Spring Security Authorization server and Spring Security Resource server. Everything works fine, user logs in, gets issued access_token and can use it to access the API. Now I need ...
jnovacho's user avatar
  • 2,921
0 votes
1 answer
328 views

I am new to Spring ecosystem, and with the limited knowledge I had with Spring, I understood how Spring Security OAuth2 works. I need the following functionality, and I think OAuth2 is not what I ...
Karthik Chennupati's user avatar
4 votes
1 answer
4k views

I'm in the process of implementing ADFS support to an existing spring project. Since we already have our own JWT authentication, which we want to work in parallel to ADFS authentication, I want to ...
Itamar Kerbel's user avatar
1 vote
1 answer
6k views

I am building an Android App which communicates with my REST API that is protected by Spring Security. Since the Android App is "public" and no keys etc is secure I want to create diffrent ...
Vanheden's user avatar
  • 680
0 votes
0 answers
161 views

I am building a spring boot java resource server as a backend for an iOS app. The iOS App authenticates users using federated login with Facebook and passes access token for resource server to create ...
keab.kcats's user avatar
0 votes
1 answer
1k views

The below Code I used in webConfigSecurity class to bypass some requests from the client @Override public void configure(WebSecurity webSecurity) throws Exception { webSecurity.ignoring()....
Ajith Kumar's user avatar
0 votes
1 answer
473 views

I develop a spring boot REST service. I use @ControllerAdvice for exception catching. Also, I have a custom AuthenticationProvider and check a license in it. @Component public class ...
Pavel Petrashov's user avatar
0 votes
1 answer
72 views

I was trying to simplify the code of security checks in my grails app and I found that there is a way to drive the security on a service class. Some of the references I found related to that: https://...
Alex A.'s user avatar
  • 2,620
1 vote
1 answer
2k views

I have a spring boot application and want to write integration tests for controllers. It is my SecurityConfig: @Configuration @EnableWebSecurity @RequiredArgsConstructor public class SecurityConfig ...
Pavel Petrashov's user avatar

1
2 3 4 5