Reputation: 53
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?
Upvotes: 0
Views: 632
Reputation: 17702
Yes. You MUST use SSL for redirect URIs. The only exception is localhost.
Upvotes: 0