-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[BUG] Version problem about nimbus-jose-jwt in azure-active-directory-spring-boot-starter #15180
Comments
Constructor signature in v8.9 - Constructor signature in v8.10 and beyond - |
Thanks for filing this issue and providing this feedback @azuroff. Someone from the /cc @jialindai |
Hi, @azuroff . Could you please set
Maybe in the future, we will update |
This issue is similar to #14898 Adding the following fragment in your pom can solve the problem:
|
I'm following this tutorial - https://docs.microsoft.com/en-us/azure/developer/java/spring-framework/configure-spring-boot-starter-java-app-with-azure-active-directory - which mentions adding the following as dependencies:
It's the latest version (5.3.4.RELEASE) of |
Hi, @azuroff , Thank you for your detailed description. |
Well, since the line causing the problem hasn't changed in 2.3.5, I suspect the new version will have the same issue. |
Hi, @azuroff . This problem is caused by
Could you please have a try? |
Hi, @azuroff . Did you test azure-active-directory-spring-boot-starter - 2.3.5 in your project? |
The problem isn't with The problem is with later versions of I'll run through the tutorial again tomorrow with a clean project and version 2.3.5, but I'm not expecting it to work. |
Hi, @azuroff . Thank you for your detailed explanation.
Please specify the version manually, seems the project created by spring initializer will use version If your problem still exists, please share your pom. 🙏 |
FYI: We are trying to update |
I'm experiencing the same issue using
As already mentioned, adding
resolves the issue. |
Hi, @tschmidt01 , I think if you change Here is the detail information:pom(spring-boot-starter-parent-2.3.3.RELEASE)(azure.version=2.3.5).xml.txt pom(spring-boot-starter-parent-2.3.3.RELEASE)(azure.version=2.3.5).xml.txt Currently, our I create a issue to fix it: #15666 |
I am facing the same problem and have following questions, since #15666 was closed about 2 weeks ago.
|
Hi, @DRoppelt ,
Currently, not sure.
if you are using
not
|
I cannot confirm that it is fixed with 2.3.5 of that module still uses:
I have attached a sample to reproduce this error: spring boot 2.3.5 + AAD starter 2.3.5 Added following to produce this error:
Executing This is the change that fixes it: https://github.com/Azure/azure-sdk-for-java/pull/15671/files#diff-bcfb49d18189176138f006deabde7a4362c16181b6eea91a03aa06bc75ed1727R112 |
Hi, @DRoppelt , Thank you for your quick response. Here is the screenshot about your demo's dependency: After add the following fragment in the pom:
Then dependency will be like this: Then So please add the following fragment in you pom:
|
yes that fixes it as a workaround, thank you.
That sounded like it was already fixed with 2.3.5 without a workaround, but I misunderstood. |
You are welcome.
Sorry for making you confused. But if you are using spring-boot:2.3.4( or 2.3.5), then you should use that workaround. Because Refs:
|
I think the problem with AADAuthenticationFilterAutoConfiguration#getJWKSetCache () can be solved with the following snippet.
However, the second argument of DefaultJWKSetCache determines the refresh cycle of the token. For this reason, I think the aadAuthProps will need a new Long value to determine the cache refresh cycle. |
The issue pointed out earlier has been reported in another issue microsoft/azure-spring-boot#802 |
Already did that in latest master branch:
Thank you for your suggestion. |
I am glad that it is helpful. |
Also, for users:
This is the same behavior as nimbus-jose-jwt <8.10. I hope you find it useful. |
@talesleaves , Thank you very much for your suggestion for users. 👍 |
@chenrujun , It was my pleasure. |
Since you have closed this issue, was there a release that fixed this without one of the two workarounds? |
@DRoppelt , OK, I'll reopen this issue, and close it until next release. |
We released azure-spring-boot-starter-active-directory:3.0.0, so I'll close this issue. |
using adding blow dependency management helped resolve the issue
|
Copy the stable version of 2021-08-01 (Azure#15180) * Copy the stable version of 2021-08-01 * Fix spellcheck and readme.md * Adding alibaba as known word
Describe the bug
When starting up an app with the
azure-active-directory-spring-boot-starter
, it fails with an error about calling a method that does not exist.Exception or Stack Trace
To Reproduce
Steps to reproduce the behavior:
Include the
azure-active-directory-spring-boot-starter
and a version ofnimbus-jose-jwt
greater than 8.9. The constructor being called was changed in version 8.10.Code Snippet
Add the code snippet that causes the issue.
N/A - internal library code
Expected behavior
A clear and concise description of what you expected to happen.
The app should start up without errors.
Screenshots
If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):
azure-active-directory-spring-boot-starter - 2.3.3
nimbus-jose-jwt - > 8.9
Additional context
Add any other context about the problem here.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: