Spring-security Questions
Ad
Failed to convert property value of type [java.lang.String] to required type [java.lang.Integer]
I am using spring mvc and spring security and hibernate. iam having problem with save 'phone number" to "database". where is mistake? i
TransactionRequiredException when updating with Jpa Repository
On succesfull authentication i'd like to make a call to db to retrieve some additional info but i get:
Create custom messages for expired and locked user
I want to return custom message if user during authentication process is locked or expired. i tried to implement this: @service
Spring Boot Security login.html location in Grails 3.0
I've just implemented spring boot security in my grails 3.0.1. i want to customize the default spring boot login form, but i can't find the
Spring security: adding "On successful login event listener"
I'm new to spring security. how do i add an event listener which will be called as a user logs in successfully? also i need to get some kind of
Stop sending preflight requests from axios.post
I have my micro-service developed using spring-boot and spring security and frontend is designed on react-hooks. now, while i am send some data to
How to manage OAuth flow in mobile application with server
I am developing an sports mobile app with flutter (mobile client) that tracks it's users activity data. after tracking an activity (swimming,
How can I correctly set a Spring Security matcher to handle request containing an ID in the middle of the URI?
I am going crazy with the following spring security matcher expression. i have this controller class containing this api
How to submit jwt token to Spring Security with ReactJs?
I have secured my api-endpoints of my spring boot application with spring security. on login, i generate a new jwt token and submit it to
What is the correct approach for integrating ReactJS with Spring Boot?
I'm trying to set up a spring boot rest api with reactjs for frontend. what is the right way to achieve this in the following scenario? as
Ad
Correct the classpath of your application so that it contains a single, compatible version of ServletServerContainerFactoryBean
I have a problem trying to upgrade a spring project from 4.3.2 to the latest ones. the project uses: 4.1.1.release security and 4.3.2 spring
Disable springboot request checking when clicking html link
I am using springboot with html pages. when i click a link (which is just a redirect a href) to navigate to next page the springboot shows
Axios Post in react js is giving error No 'Access-Control-Allow-Origin' header is present on the requested resource
I am trying to do create login page using react in my web application with spring boot in backend. i am using spring security jdbc authentication
Spring security config for oauth2Login using user's roles instead of scope
The decoded jwt is { "datetime": 1643825042420, "aud": [
Login with firebase + spring on backend
This is my first web project so its also my first time doing a login, after a research the best guide i found is for firebase but the problem i
"No operations allowed after connection closed " using Dart and Java
I am working with spring boot and dart. when i hit the url (using postmen/browser) to insert some data in mysql i got the response correctly. but
Protecting web application from CSRF attack using Spring Security
I am implementing csrf protection in my web application. i have used
How to keep an Android App logged in indefinitely with Spring Boot Server?
Ok, to be honest, that headline is a bit misleading but i couldn't think of better one. i have a spring boot based server and an android
Disable CSRF for specific URLs SPA Spring Gateway WebFlux
I have next csrf code in webfilterchain: .csrftokenrepository(cookieservercsrftokenrepository.withhttponlyfalse())
Spring Bcrypt is stateless and doesn't need a secure random?
I have two doubts about spring security bcrypt: does bcrypt need a strenght and secure random to be safe?
Spring Security REST - Unit Tests fail with HttpStatusCode 401 Unauthorized
I have a problem with my unit tests for a spring rest application. in my unit tests i always get the problem that i get 401 "unauthorized" as
Ad
How to access external URL which requires OAuth2 via Spring Boot?
Currently, the mechanism that we use for authenticating against a server which requires oauth2 is to write a java program which contains a main()
What is messagingTemplate used for in SpringBoot websocket?
I have been trying to grasp fully the concept of websocket and i stumbled messagingtemplate.convertandsendtouser(); and
Server connection lost after successful login with Spring Security
After successful login using spring security i will loose connection and my client is trying to reconnect. this is my config file:
Spring security: sporadic NullPointerException
I have simple web application with rest api and i want to secure it with token-based authentication. here is my security filter:
RedisTokenstore: Cannot cast ...User to ...User
I switched my spring oauth2 app to the redistokenstore. now on accessing the principal, basically through ...
Swagger-ui with Spring security
I have a simple rest application with authentication service. i tried to add swagger and swagger-ui to it, but i can only see my endpoints in
how to secure swagger-ui with basic auth using spring security
I have a simple spring boot app with rest api and i need to secure swagger-ui.html with basic auth using spring security i have already
Uncorrect redirect after login - Spring Boot
In my spring boot application i have a strange problem. after login, my web app redirect to a js page
Spring oauth2 dont redirect to original url
I tried to configure the authorization code flow as a client. as far the flow is working. i get a redirect to the login page. the oauth2 server
Why is my oauth2 config not using my custom UserService?
I'm trying to use authentication by google. i am using springboot2, so most of the configuration is automatic. the authentication itself works
Spring security - Call custom authentication provider from custom login page
I have a custom login page (securelogin.jsp) <%@ page language="java" contenttype="text/html; charset=iso-8859-1"
Ad
Why my test passes without a bearer token
I have a simple spring app. but i don't understand why the test passes without the need of a bearer token. here is the controller:
Post method and String value in Java Spring
I'm trying to post a text from home.html template <form th:action="@{/process_addtext}"
Spring security is blocking Vue.js pages | receiving 403 error
I have a spring/vuejs project that couples the frontend and backend into one warfile and for some reason the spring security setup i have blocks
Can't put permitAll() in behind the loginpage()
I got an error when i put permitall() in behind the loginpage(), here is my configure():
Spring LDAP Authentication's user account concepts
I am developing an authentication function of a spring web application. the customer already have an existing active directory with their staff
FilterRegistrationBean necessary to enable CORS support with Spring Security?
My resource server is secured by oauth2 and uses this cors configuration: @bean corsconfigurationsource corsconfigurationsource()
Spring Security CSRF 403 Forbidden on successful login
I'm using spring security on a basic thymeleaf setup with index.html and login.html, however the default login page always returns 403 forbidden
Is there a way to access a PathVariable in a controller level @PreAuthorize annotation?
Is there a way to access the httprequest within a controller level @preauthorize annotation to obtain a pathvariable and use it for the expression
What is the import path for @EnableAuthorizationServer annotation
I am trying to make sense of spring authorization server. following various tutorials, and the original documentation, pretty much the
Spring Security, Stateless REST service and CSRF
I have a rest service, built using java, spring-boot and using spring security with basic access authentication. there are no views, no jsp etc,
Error creating bean with name 'scopedTarget.oauth2ClientContext' despite defining RequestContextListener
My app has multiple spring security configurations and one of them happens to be oauth2 (using
Ad
How to modify Spring Security filter chain at runtime?
I am using spring security and my config looks like this. i am using
Why is my SecurityWebFilterChain not being invoked?
I just started to learn spring's new reactive programming model and for this reason i tried to write a very basic webservice. this is my
Add filter to Spring security to implement multi tenant
I need to update my spring security configuration to introduce multi-tenant management (where i get url for each web request and through a
After implementing spring security in my (java spring mvc + mysql application, thymeleaf) something weird happens with the authentication
Having custom userdetails service. if i enter a url that is not listed in my permit all list in the security configuration. it will be redirected
TokenStore MongoDB Spring OAuth2
I'm trying to create token store with on mongodb i wanted to use the current db connection in my app. i've used the
Spring Boot Security and Auth0 - Cannot disable CSRF
I am building a restful spring boot and react/alt application. i want to add spring security to make sure that there could be no unauthenticated
Ad
Blog Categories
Ad