I am trying to increase access token lifetime by following MsDocs.
For that I have installed powershell in ubuntu.
I have installed Microsoft Graph PowerShell SDK.And following commands.
But on command:
Connect-MgGraph -Scopes "Policy.ReadWrite.ApplicationConfiguration","Policy.Read.All","Application.ReadWrite.All"
I Microsoft page opens, After login page shows error:
Authentication failed. You can return to the application. Feel free to close this browser tab.
Error details: error invalid_scope error_description: The provided value for the input parameter 'scope' is not valid. The scope 'Policy.ReadWrite.ApplicationConfiguration Policy.Read.All Application.ReadWrite.All openid profile offline_access' does not exist.
Also Terminal shows similar error:
Connect-MgGraph: InteractiveBrowserCredential authentication failed: The provided value for the input parameter 'scope' is not valid. The scope 'Policy.ReadWrite.ApplicationConfiguration Policy.Read.All Application.ReadWrite.All openid profile offline_access' does not exist.
I have copied command from MsDocs still show this error.
I am integrating outlook in my application. I have created application on azure and I am trying to change token lifetime for that. I am trying to login with the same account I used to create application on azure.