Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating spring-boot to 3.2.0 breaks with "An AuthenticationManager is required" #389

Open
benallard opened this issue Nov 24, 2023 · 9 comments

Comments

@benallard
Copy link

benallard commented Nov 24, 2023

I'm using the spring-boot-starter-oauth2-resource-server, and I thought that should be enough to setup the security processing.

Spring-boot 3.2.0 has spring-security 6.2

EDIT:
The AbstractSecurityInterceptor is actually deprecated:

Use org.springframework.security.web.access.intercept.AuthorizationFilter instead for filter security, org.springframework.security.messaging.access.intercept.AuthorizationChannelInterceptor for messaging security, or org.springframework.security.authorization.method.AuthorizationManagerBeforeMethodInterceptor and org.springframework.security.authorization.method.AuthorizationManagerAfterMethodInterceptor for method security.

@alicanhaman
Copy link

I am currently updating to Spring boot 3.2.0. And faced the exact same issue. Our standart rest api security ended up breaking grpc, we don't do grpc security. Did you find a way to fix this issue?

@alicanhaman
Copy link

Disabled grpc security in properties which did the trick.

grpc:
  security:
    auth:
      enabled: false

@jvmlet
Copy link
Collaborator

jvmlet commented Dec 14, 2023

Right, @alicanhaman, this is the way till 3.2.0 is supported.

@mwong38
Copy link

mwong38 commented Jan 5, 2024

So grpc security doesn't work with 3.2.0 at all? When will 3.2.0 be supported? Is there a workaround in the mean time?

@sheinbergon
Copy link

@jvmlet is there any plan to support Spring 3.2.0? what's the blocker here in terms of security? Anyway I can help?

@jvmlet
Copy link
Collaborator

jvmlet commented Feb 19, 2024

Hi, yes, planned.
Basically, they removed the filter that drives authentication , I asked spring security team to resurrect this class, but no 😒
What needs to be done is to copy-paste the base class of grpc security interceptor (the essential part of it)

@sheinbergon
Copy link

@jvmlet will you accept PRs?

@jvmlet
Copy link
Collaborator

jvmlet commented Feb 20, 2024

@sheinbergon, sure, בשמחה
FYI spring-projects/spring-security#13444

@debraj-spotnana
Copy link

https://grpc-ecosystem.github.io/grpc-spring/ started supporting spring boot 3.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants