![Picture of Boris MANCHETTE Picture of Boris MANCHETTE](/graphics/unknown.gif)
Boris MANCHETTE - 2015-03-10 22:15:11
Hello,
I try to use the PHP OAuth API class to interact with Misfit API.
I have configure the Misfit server like this in my JSON file:
"Misfit":
{
"oauth_version": "2.0",
"dialog_url": "https://api.misfitwearables.com/auth/dialog/authorize?response_type=code&client_id={CLIENT_ID}&redirect_uri={REDIRECT_URI}&scope={SCOPE}",
"access_token_url": "https://api.misfitwearables.com/auth/tokens/exchange",
"token_request_method": "POST"
}
When I try to interact with Misfit but calling a PHP page, I loop on Misfit permission page.
On the apache log file, I can find the following entries:
Tue Mar 10 23:06:01.579836 2015 - OAuth client: Redirecting to OAuth Dialog https://api.misfitwearables.com/auth/dialog/authorize?response_type=code&client_id=xxxxx&redirect_uri=xxxxx&scope=public%2Cbirthday%2Cemail
Tue Mar 10 23:06:01.579156 2015 - OAuth client: Checking the authentication state in URI /misfit_api/login_with_misfit.php?code=hD9RfnIZsFxRVcF6
Tue Mar 10 23:06:01.576001 2015 - OAuth client: A valid access token is not available
Tue Mar 10 23:06:01.563884 2015 - OAuth client: Checking if OAuth access token was already retrieved from https://api.misfitwearables.com/auth/tokens/exchange
Could you help me to resolve this behaviour?
Regards