Mandagus Šernas
JCHJava Community | Help. Code. Learn.
•Created by miporin1780 on 12/11/2024 in #java-help
got 403 forbidden, can't pass the SecurityFilterChain
if you created a custom kind of token for your jwt thing that gets authenticated by your custom authentication provider this order wouldn't matter, I think
15 replies
JCHJava Community | Help. Code. Learn.
•Created by miporin1780 on 12/11/2024 in #java-help
got 403 forbidden, can't pass the SecurityFilterChain
at least if your aim is to reuse UsernamePasswordAuthenticationToken
15 replies
JCHJava Community | Help. Code. Learn.
•Created by miporin1780 on 12/11/2024 in #java-help
got 403 forbidden, can't pass the SecurityFilterChain
it probably should be
addFilterAfter
not before15 replies
JCHJava Community | Help. Code. Learn.
•Created by Koblížkáč on 11/24/2024 in #java-help
How to create custom login route in Spring?
I mean, how do you think the mpa form thing works? It just hits a POST request. You can run same POST request from js fetch
15 replies
JCHJava Community | Help. Code. Learn.
•Created by rainymc_ on 11/29/2024 in #java-help
Adding to unicode
5 replies
JCHJava Community | Help. Code. Learn.
•Created by Ori on 11/27/2024 in #java-help
Create and push docker file and deploy project to render.com
show code, there is nothing to comment withou details
7 replies
JCHJava Community | Help. Code. Learn.
•Created by Royalrex25 on 11/25/2024 in #java-help
Java with Maven Projects not creating jar files
run it from command line if you can't figure out your IDE
mvn package
19 replies
JCHJava Community | Help. Code. Learn.
•Created by Koblížkáč on 11/24/2024 in #java-help
How to create custom login route in Spring?
you can post to /login from any spa framework
15 replies
JCHJava Community | Help. Code. Learn.
•Created by Koblížkáč on 11/24/2024 in #java-help
How to create custom login route in Spring?
that said you don't need to create custom endpoint, you can just use the already provided /login, it doesn't force you to use thymeleaf or anything
15 replies
JCHJava Community | Help. Code. Learn.
•Created by Koblížkáč on 11/24/2024 in #java-help
How to create custom login route in Spring?
autowire AuthenticationManager, apply it with UsernamePasswordAuthentication object you create from request parameters, set the result into spring security context, something along those lines
15 replies
JCHJava Community | Help. Code. Learn.
•Created by Shreya on 11/24/2024 in #java-help
when i am starting as springboot application on eclipse it is working fine but when i am running th
how exactly are you running it on cmd
8 replies
JCHJava Community | Help. Code. Learn.
•Created by 𝓱𝓲𝓶 𝓫𝓾𝓽 𝓯𝓻𝓮𝓪𝓴𝔂 on 11/23/2024 in #java-help
Program Randomly Quitting After Font.createFont() statement
new File("ggsans.ttf")
File
operates with file system. For loading from classpath (which is what src/main/resources belongs to) you have to use something else, eg , https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html#getResourceAsStream(java.lang.String)
frame = new JFrame();you shouldn't be interacting with swing component classes outside of swing thread. Use https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/SwingUtilities.html#invokeLater(java.lang.Runnable)
11 replies