Your instructions are a little broken....
@Realms.tv
1. Firstly, I get this when I attempt to login via my XF forum....
- Error: Cannot instantiate interface Lcobucci\JWT\Token
- src/addons/Audentio/API/vendor/lcobucci/jwt/src/Token/Builder.php:122
- Generated by: Unknown account
- Apr 22, 2023 at 8:49 PM
Stack trace
#0 src/addons/Audentio/API/vendor/league/oauth2-server/src/Entities/Traits/AccessTokenTrait.php(71): Lcobucci\JWT\Token\Builder->getToken(Object(Lcobucci\JWT\Signer\Rsa\Sha256), Object(Lcobucci\JWT\Signer\Key\LocalFileReference))
#1 src/addons/Audentio/API/vendor/league/oauth2-server/src/Entities/Traits/AccessTokenTrait.php(79): Audentio\API\OAuth2\Bridge\AccessTokenBridge->convertToJWT()
#2 src/addons/Audentio/API/vendor/league/oauth2-server/src/ResponseTypes/BearerTokenResponse.php(31): Audentio\API\OAuth2\Bridge\AccessTokenBridge->__toString()
#3 src/addons/Audentio/API/vendor/league/oauth2-server/src/AuthorizationServer.php(202): League\OAuth2\Server\ResponseTypes\BearerTokenResponse->generateHttpResponse(Object(Laminas\Diactoros\Response))
#4 src/addons/Audentio/API/Service/OAuth2/AuthorizationServer.php(24): League\OAuth2\Server\AuthorizationServer->respondToAccessTokenRequest(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Diactoros\Response))
#5 src/addons/Audentio/API/Api/Controller/Oauth2.php(24): Audentio\API\Service\OAuth2\AuthorizationServer->getResponseToAccessTokenRequest()
#6 src/addons/Audentio/API/Api/Traits/OAuthResponseHandlerTrait.php(15): Audentio\API\Api\Controller\Oauth2->Audentio\API\Api\Controller\{closure}()
#7 src/addons/Audentio/API/Api/Controller/Oauth2.php(25): Audentio\API\Api\Controller\Oauth2->handleOAuthResponse(Object(Closure))
#8 src/XF/Mvc/Dispatcher.php(352): Audentio\API\Api\Controller\Oauth2->actionPostToken(Object(XF\Mvc\ParameterBag))
#9 src/XF/Api/Mvc/Dispatcher.php(27): XF\Mvc\Dispatcher->dispatchClass('Audentio\\API:Oa...', 'Posttoken', Object(XF\Api\Mvc\RouteMatch), Object(Audentio\API\Api\Controller\Oauth2), NULL)
#10 src/XF/Mvc/Dispatcher.php(115): XF\Api\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Api\Mvc\RouteMatch), Object(Audentio\API\Api\Controller\Oauth2), NULL)
#11 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Api\Mvc\RouteMatch))
#12 src/XF/App.php(2483): XF\Mvc\Dispatcher->run()
#13 src/XF.php(524): XF\App->run()
#14 index.php(16): XF::runApp('XF\\Api\\App')
#15 {main}
Request state
array(4) {
["url"] => string(24) "/api/audapi-oauth2/token"
["referrer"] => bool(false)
["_GET"] => array(1) {
["/api/audapi-oauth2/token"] => string(0) ""
}
["_POST"] => array(5) {
["grant_type"] => string(18) "authorization_code"
["client_id"] => string(36) "redacted"
["client_secret"] => string(64) "redacted"
["redirect_uri"] => string(34) "
https://myrealm.realms.tv/auth/xenforo"
["code"] => string(786) "redacted"
}
}
2. Your instructions state you need to override with this template <xf:include template="realms
tv_oauth2_authorize" /> but in fact it should be <xf:include template="realms_oauth2_authorize" />
3. On realms.tv I had setup a YT integration, then after subsequent logins going to Media Integrations I don't see it though it's available from streams pages etc. I setup another one and now I have 2 identical YT integrations.. Think it's a bug on your side.