Skip to content

when I use this library with the newest spring-boot,I got an error #613

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

Closed
zwjsexcalibur opened this issue Jan 31, 2022 · 2 comments
Closed
Assignees
Labels
status: duplicate A duplicate of another issue

Comments

@zwjsexcalibur
Copy link

when i user this libary with spring-boot-starter-parent(2.6.3),I got error like this :
java.lang.IllegalAccessError: tried to access class org.springframework.security.oauth2.jwt.JoseHeader from class org.springframework.security.oauth2.server.authorization.authentication.JwtUtils
at org.springframework.security.oauth2.server.authorization.authentication.JwtUtils.headers(JwtUtils.java:46) ~[spring-security-oauth2-authorization-server-0.2.2.jar:0.2.2]
at org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationCodeAuthenticationProvider.authenticate(OAuth2AuthorizationCodeAuthenticationProvider.java:172) ~[spring-security-oauth2-authorization-server-0.2.2.jar:0.2.2]
at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:182) ~[spring-security-core-5.6.1.jar:5.6.1]
at org.springframework.security.oauth2.server.authorization.web.OAuth2TokenEndpointFilter.doFilterInternal(OAuth2TokenEndpointFilter.java:165) ~[spring-security-oauth2-authorization-server-0.2.2.jar:0.2.2]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.15.jar:5.3.15]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.1.jar:5.6.1]
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:115) ~[spring-security-web-5.6.1.jar:5.6.1]
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:81) ~[spring-security-web-5.6.1.jar:5.6.1]

this error occured by using authorization_code.

but the error will not occur if I use spring-boot-starter-parent(2.3.4).

i use the this project(https://github.com/xpp1109/spring-security-lt5-oauth2.git) as example.And change the spring-boot-starter-parent version the error while occur.

@zwjsexcalibur zwjsexcalibur added the type: bug A general bug label Jan 31, 2022
@zwjsexcalibur
Copy link
Author

the spring-authorization-server also use 0.2.2

@sjohnr
Copy link
Contributor

sjohnr commented Jan 31, 2022

Thanks for the report, @zwjsexcalibur and welcome to the project!

I believe this is a duplicate of gh-518 which will be resolved with gh-594. See this comment and the next one to see if that helps resolve your issue.

I'm going to close this as a duplicate, but if your error is somehow different and requires a different workaround we can discuss it, or even re-open the issue if needed. Please do let me know if it works or you get stuck!

@sjohnr sjohnr closed this as completed Jan 31, 2022
@sjohnr sjohnr added status: duplicate A duplicate of another issue and removed type: bug A general bug labels Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants