I would like to use named credential along with auth provider to handle authentication and api authorization using OpenidConnect.
I have been able to connect & authenticate with azure Ad by setting up both (NC and Auh prov)and tried callouts working flawless !! but after an hour when acess token expires , I get 401 unauthorized error, seems like SF NC has NOT been able to handle refesh token exchange with new access token or somthing else is causing an issue.
Here is the scope : https://graph.microsoft.com/.default offline_access
Please see snapshots below.
Any clues what could be mising ? azure ad side openid, offline acess permissions are given ? tried couple of variations
@Mohit Chhabra Any luck with the issue? I'm facing a similar problem and tried updating my scope, but nothing worked.