[BUG] On behalf of flow. requested_token_use parameter missing after upgrading to version 4.3
See original GitHub issueDescribe the bug After upgrading from 4.2 to 4.3 on behalf of flow with spring-cloud-azure-starter-active-directory is not working.
Exception or Stack Trace org.springframework.security.oauth2.client.ClientAuthorizationException: [invalid_request] AADSTS900144: The request body must contain the following parameter: ‘requested_token_use’
To Reproduce Upgrade spring-cloud-azure-starter-active-directory from 4.2 to 4.3
Code Snippet
profiles:
active: local
cloud:
azure:
active-directory:
enabled: true
profile:
tenant-id: cxxx
credential:
client-id: fxxx
client-secret: <Legg til secret her>
authorization-clients:
myclient:
authorization-grant-type: on_behalf_of
scopes:
- 6xxx/.default
Expected behavior Receive correct token
Screenshots
Setup (please complete the following information):
- OS: [e.g. iOS]
- IDE: [e.g. IntelliJ]
- Library/Libraries: com.azure.spring:spring-cloud-azure-starter-active-directory:4.3.0
- Java version: 17
- App Server/Environment: Tomcat
- Frameworks: Spring Boot
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @eoskd thanks for reaching out to us via this GitHub issue. @yiliuTo from the
Azure Spring
team will follow up with you shortly.Hi, I’ve the same problem and been forced to downgrade to 4.2 springboot azur starter version ! Wish be fixed in 4.4