ankitsam / office365-api-php-client

The Office 365 RESTful API PHP Client Library enables you to work with Calendar, Contact and Mail that uses OAuth2 for authorization.
Apache License 2.0
19 stars 13 forks source link

Issue with special characters in #1

Open noahfinn opened 10 years ago

noahfinn commented 10 years ago

I ran into a problem where I was getting back an error that my client secret was invalid, and eventually figured out it was because of special characters in it. I'm not sure if it was the / or the +, but I ended up regenerating the key and getting one with only alpha-numberic chars and =, which works fine. I'm not sure what the proper way is to escape the values so that they are parsed correctly on the receiving end, but wanted to let you know about the issue.

grgaortiz commented 9 years ago

I had an initial issue as well but simply regenerated the key by clicking on "Access Web APIs in other Applications" from within the application view inside the directory on the Azure portal.