skip to Main Content

Oauth2 refresh_token doesn't exists – PHP

I use below code but when I login via Microsoft account I don't receive refresh_token. Someone can explain why? $login = 'https://login.microsoftonline.com/xxxxxxxxxxxxxxxxxxxxxxxxx/oauth2/v2.0/authorize?'.http_build_query([ 'client_id' => $id, 'scope' => 'https://outlook.office.com/IMAP.AccessAsUser.All', 'redirect_uri' => $redirect, 'response_type' => 'code', ]);

VIEW QUESTION

Azure – AZ REST Command Forbidden

Service Principal does have Application.ReadWrite.OwnedBy API permission but it can't PATCH using the AZ REST commands. It can LIST/ GET using AZ REST command. az rest --method PATCH --uri "https://graph.microsoft.com/v1.0/applications/{OBJECT_ID}" --headers 'Content-Type=application/json' --body "{web:{redirectUris:['https://URL']}}" Error: Forbidden( { "error": { "code":"Authorization_RequestDenied",…

VIEW QUESTION
Back To Top
Search