0

i am trying to integrate outlook calendar using following links, https://dev.outlook.com/restapi/tutorial/php , i have added my app in https://apps.dev.microsoft.com. the example app working fine, with localhost redirect uri

$redirectUri = 'http://localhost/php-tutorial/authorize.php';

but when i have used my vhost local uri (http://www.gcal2excel.dev/authorize.php), and updated redirect uri in [https://apps.dev.microsoft.com][1] , redirect stops working and showing following error:

Array
(
    [error] => invalid_request
    [error_description] => The provided value for the input parameter 'redirect_uri' is not valid. The scope 'openid https://outlook.office.com/calendars.read' requires that the request must be sent over a secure connection using SSL.
)

seeking solution for this, should i implement SSL certificate in my local vhost? so connection will be using SSL? how to do that for local vhost?

Ikhtiar
  • 53
  • 2
  • 8
  • Unfortunately only localhost works with http. What about a test or staging environment on cloud? Do we need an ssl certificate for these envs as well? – Viorel Vesa May 24 '17 at 08:32

1 Answers1

0

Yes. You MUST use SSL for redirect URIs. The only exception is localhost.

Jason Johnston
  • 17,194
  • 2
  • 20
  • 34