hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.2K
active users

#springsecurity

0 posts0 participants0 posts today

I'm a bit desperate, I really need to set up CAS authentication in a Spring 6.1+ application, and I have no fucking idea how... All I've been able to find is this thing https://docs.spring.io/spring-security/reference/servlet/authentication/cas.html#cas-pt but I am trying to configure it using Java, not XML gibberish... the CAS I'm trying to set up, to be more exact, is ECAS, the EU Login CAS. Does anybody have any pointers? I beg you fedi, please help me, this shit is due Monday and I have 0 idea how to do it... ​:nkocry:#Java #SpringBoot #SpringFramework #SpringSecurity #ProgrammingHelp

docs.spring.ioCAS Authentication :: Spring Security

connect2id's Nimbus OAuth2/OIDC SDK is underrated, particularly as a direct dependency!

connect2id.com/products/nimbus

Many people use it through Spring Security or Pac4j but the lib is relatively easy to use directly (particularly if you know the protocols) and can be used to add OIDC support to Java apps with much less complexity than those Spring or Pac4j authentication frameworks (but at the cost of having to handle some of the Web security yourself, mainly around CSRF)

connect2id.comNimbus OAuth 2.0 SDK with OpenID Connect extensions | Connect2id
#Java#OAuth2#OIDC

I'll be honest, I've never really liked #SpringFramework. I've had to learn to use it, but upgrading is still such a pile of shit.

My headache (literally) is having to upgrade the #SpringSecurity from version 5.x to 6.2.1. We've always used XML configuration for the security config. This is allows us to support different customers. However, with the 6.2.1 I can't seem to get the XML configurations to work, and all the documentation for the XML stuff are not up-to-date.

I see so many #SpringBoot and #SpringSecurity tutorials store usernames and passwords in a database. Sure, the passwords are appropriately encrypted, but why are folks rolling their own database storage and not being shown how to use OAuth or OpenID and authenticate against a third-party system where they've done this for you?

There's so many more important things to learn than storing usernames/passwords in a database table (integrating with OAuth/OpenID is hard enough!), which folks will unlikely every do in their career.