this post was submitted on 27 Dec 2023
5 points (100.0% liked)
The Java Programming Language
214 readers
6 users here now
Discussion of Java and java-related technologies. This includes things like:
- J2EE/JakartaEE
- Spring
- Micronaut
- Helidon
- Quarkus
For assistance learning Java, please go to Learn Java
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Sorry if throwing a bit of wrench in your way but in general nowadays OAuth2.0 bearer token based authentication with API's is the preferred way to do things.
This way you don't have to send the username/password to the site, just the JWT token signed by the identity provider. It is of course depending on the case, but usually frameworks support OAuth quite easily, and you don't have to worry about storing the credentials yourself.
Thanks for the reply. Yeah, I'll probably go that way once I get familiar with basic HTTP authentication in Spring.