Priority: P2: Important
Resolution: Out of scope
Affects Version/s: 6.2.0
Fix Version/s: None
Component/s: Network: Authentication
Environment:Windows 10 20H2
The attached example project shows a working and broken example for refreshing access tokens against Azure.
The working example is just a lucky hack that seems to work for me, the broken example should just work in my opinion.
The Azure instance is a just a playground setup for me so I can share it:
The attached pdf shows how to setup Azure for this example app.
How to reproduce:
- Start attached example app
- Click button "Switch to bad example"
- Click button "Grant"
- Your browser will open with the login page -> login
- The app will show the access token and refresh token
- Click button "Refresh"
- The app shows no new tokens, in the console an error is displayed
The error is:
https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow - The Microsoft docs mention the scope for the refresh token request is optional, but in this case it does not seem to be true.
It works with this modification "Qt\6.2.0\Src\qtnetworkauth\src\oauth\qoauth2authorizationcodeflow.cpp":
If I can be of any help please let me know.