Solved Connected Account type XenForo does not work if target is not running at domain root

This topic has been solved
K

Kirby

Guest
XF\ConnectedAccount\Service\XenForo.php

PHP:

Code:
public function getAuthorizationEndpoint(): Uri
{
    $provider = $this->getProvider();
    $endpoint = new Uri($provider->options['board_url']);
    $endpoint->setPath('/oauth2/authorize');

    return $endpoint;
}

public function getAccessTokenEndpoint(): Uri
{
    $provider = $this->getProvider();
    $endpoint = new Uri($provider->options['board_url']);
    $endpoint->setPath('/api/oauth2/token');

    return $endpoint;
}

This...

Read more

Continue reading...