Tomasm21
JCHJava Community | Help. Code. Learn.
•Created by Tomasm21 on 1/16/2025 in #java-help
How to define 3 authentication ways config - httpBasic, userDetailsService, JsonLoginFilter()
Ok I will try
24 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomasm21 on 1/16/2025 in #java-help
How to define 3 authentication ways config - httpBasic, userDetailsService, JsonLoginFilter()
These problems are not new.
24 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomasm21 on 1/16/2025 in #java-help
How to define 3 authentication ways config - httpBasic, userDetailsService, JsonLoginFilter()
There should be a way.
24 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomasm21 on 1/16/2025 in #java-help
How to define 3 authentication ways config - httpBasic, userDetailsService, JsonLoginFilter()
But would it mean that if I will qualify the
databaseProvider
bean and then in postman I will try to autheticate using Basic Auth then what happens next? Due to qualifiers it will always try to athenticate me using databaseProvider
instead of the inMemoryProvider
. And perhaps I won't be able to auntheticate.24 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomasm21 on 1/16/2025 in #java-help
How to define 3 authentication ways config - httpBasic, userDetailsService, JsonLoginFilter()
JsonLoginFilter():
24 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomasm21 on 1/16/2025 in #java-help
How to define 3 authentication ways config - httpBasic, userDetailsService, JsonLoginFilter()
I want to have all three ways to authenticate. Did I defined it wrong in my
SecurityConfiguration
?
How should it be defined? Why Spring doesn't accept my changed AuthenticationManager
with two DaoAuthenticationProvider
providers that each provides different way to authenticate? One for in memory db and another using real MySql db.24 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomasm21 on 1/16/2025 in #java-help
How to define 3 authentication ways config - httpBasic, userDetailsService, JsonLoginFilter()
24 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomasm21 on 1/16/2025 in #java-help
How to define 3 authentication ways config - httpBasic, userDetailsService, JsonLoginFilter()
As a result I can't authenticate in either way. I get an exception:
24 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomasm21 on 1/16/2025 in #java-help
How to define 3 authentication ways config - httpBasic, userDetailsService, JsonLoginFilter()
Problem:
and
24 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomasm21 on 1/16/2025 in #java-help
How to define 3 authentication ways config - httpBasic, userDetailsService, JsonLoginFilter()
24 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomasm21 on 1/16/2025 in #java-help
How to define 3 authentication ways config - httpBasic, userDetailsService, JsonLoginFilter()
It executes well but in console I get:
24 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomasm21 on 1/16/2025 in #java-help
How to define 3 authentication ways config - httpBasic, userDetailsService, JsonLoginFilter()
24 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomasm21 on 1/16/2025 in #java-help
How to define 3 authentication ways config - httpBasic, userDetailsService, JsonLoginFilter()
24 replies
JCHJava Community | Help. Code. Learn.
•Created by Maxxx005 on 1/16/2025 in #java-help
production vs development
You're welcome.
271 replies
JCHJava Community | Help. Code. Learn.
•Created by Maxxx005 on 1/16/2025 in #java-help
production vs development
And yes I never used flyway, but I heard many recommendations of it for production. Either investigate deeply why currently the table is not created or go with flyway.
271 replies
JCHJava Community | Help. Code. Learn.
•Created by Maxxx005 on 1/16/2025 in #java-help
production vs development
Sometimes,
ddl-auto=update
only runs during application startup if there are changes detected in the entity mappings. If there is any issue with the entity itself (like missing annotations or improper configuration), Hibernate might not attempt to create the new table. Double-check your entity class to ensure the table and field mappings are correct.
Enable detailed logging for Hibernate to see if it is trying to update the schema and to check for any errors related to schema validation or creation.
Does it create the table in development but not production?271 replies
JCHJava Community | Help. Code. Learn.
•Created by Maxxx005 on 1/16/2025 in #java-help
production vs development
?
271 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
I reported it to Springdoc issues on github.
49 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
The problem is in front-end. For unknown reason Swagger shows variant ids wrong. But in response body numbers are correct.
49 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
When I debugged like you then in service method ProductDto is with correct variant ids for both loading Variants eagerly or lazily.
49 replies