You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure if this is an issue with the package, the api, or my code but I am unable to get an access token on a public destiny app. Here is my error
Request error (invalid_request): Public client should not attempt to authenticate.
I tested and added this method to Api\Module\App.php and it seems to work.
public function getAccessTokenFromAuthCodePublic($authCode, $oAuthClientId)
{
return $this->apiClient->postAsForm('App/OAuth/Token', [
'client_id' => $oAuthClientId,
'grant_type' => 'authorization_code',
'code' => $authCode
]);
}
The text was updated successfully, but these errors were encountered:
I am not sure if this is an issue with the package, the api, or my code but I am unable to get an access token on a public destiny app. Here is my error
Request error (invalid_request): Public client should not attempt to authenticate.
I tested and added this method to Api\Module\App.php and it seems to work.
public function getAccessTokenFromAuthCodePublic($authCode, $oAuthClientId)
{
return $this->apiClient->postAsForm('App/OAuth/Token', [
'client_id' => $oAuthClientId,
'grant_type' => 'authorization_code',
'code' => $authCode
]);
}
The text was updated successfully, but these errors were encountered: