-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Add support dpop customization #16940
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
Comments
@franticticktick Can you provide some specific use cases on what you need to customize for a DPoP flow? |
@jgrandja Firstly, it would be nice if dpop was optional, now it is always enabled. Secondly, the same |
@jgrandja I can prepare a PR if this ticket is relevant. |
Thank you @franticticktick. I've assigned it to you. No rush as this is scheduled for |
Hi @franticticktick & @jgrandja, while trying out spring-boot 3.5.0 (which includes spring-security 6.5.0) we noticed that our setup does not work anymore due to the auto init of DPoP. We are using the oauth 2.0 resource server with an OpaqueTokenIntrospector and not JWT, therefore we do not have A ClassNotFoundException (org.springframework.security.oauth2.jwt.JwtException) is thrown during start-up while configuring DPoP. In the end there are three possible solutions for us:
Due to the third option I figured this could be part of this issue and I opted to comment first instead of creating a separate issue. Please let me know if you think this should be a separate issue, or if I can support in any way here. |
Hi @pheyken Indeed, such a problem exists. But it seems to me that this is a rather rare case. If you have a stable working solution, then it would be good if you wait until we finish working on this ticket. If this problem is still widespread, then we can consider the possibility of disabling dpop. |
@pheyken As you already noticed, DPoP is enabled by default and it does require the
|
Closes spring-projectsgh-16940 Signed-off-by: Max Batischev <[email protected]>
Currently
dpop
can't be configured.OAuth2ResourceServerConfigurer
hasdPoPAuthenticationConfigurer
and it is already initialized withDPoPAuthenticationConfigurer
and inconfigure
method it is always applied tohttp
. It would be nice to separate dpop configuration instead of applying it by default.For example:
The text was updated successfully, but these errors were encountered: