Sign in with Apple

Sign in with Apple 1.0.3

No permission to download

Truonglv

♥♥ √εgετα ♥♥
Staff member
Tech Support
Truonglv submitted a new resource:

Sign in with Apple - Allow sign in with Apple account

Allow users can sign in or connect their account with apple account.

Steps 1: Creating app service ID.
View attachment 5113
View attachment 5115


In this form, you need choose your app and website URLs must be registered. Return URL should be:

View attachment 5116


Steps: Creating key
View attachment 5113View attachment 5111

Note: Key file only available...

Read more about this resource...
 

TheCodeby

Member
These errors occur when the user connects to the account.
Code:
TypeError: Template public:connected_account_associated_asi_apple error: Truonglv\AppleSignIn\ConnectedAccount\ProviderData\Apple::getName(): Return value must be of type string, null returned src/addons/Truonglv/AppleSignIn/ConnectedAccount/ProviderData/Apple.php:50

#0 src/XF/ConnectedAccount/ProviderData/AbstractProviderData.php(175): Truonglv\AppleSignIn\ConnectedAccount\ProviderData\Apple->getName()
#1 internal_data/code_cache/templates/l3/s3/public/connected_account_associated_asi_apple.php(7): XF\ConnectedAccount\ProviderData\AbstractProviderData->offsetGet('name')
#2 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, NULL)
#3 src/XF/ConnectedAccount/Provider/AbstractProvider.php(371): XF\Template\Templater->renderTemplate('connected_accou...', Array)
#4 src/XF/Entity/ConnectedAccountProvider.php(83): XF\ConnectedAccount\Provider\AbstractProvider->renderAssociated(Object(XF\Entity\ConnectedAccountProvider), Object(XFRM\XF\Entity\User))
#5 src/XF/Template/Templater.php(1191): XF\Entity\ConnectedAccountProvider->renderAssociated()
#6 internal_data/code_cache/templates/l3/s3/public/connected_account_macros.php(40): XF\Template\Templater->method(Object(XF\Entity\ConnectedAccountProvider), 'renderAssociate...', Array)
#7 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, NULL)
#8 internal_data/code_cache/templates/l3/s3/public/account_connected.php(28): XF\Template\Templater->callMacro('connected_accou...', 'disassociate', Array, Array)
#9 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, NULL)
#10 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('account_connect...', Array)
#11 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#12 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Account\\Conn...', 'public:account_...', Array)
#13 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#14 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#15 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#16 src/XF/App.php(2352): XF\Mvc\Dispatcher->run()
#17 src/XF.php(524): XF\App->run()
#18 index.php(20): XF::runApp('XF\\Pub\\App')
#19 {main}

array(4) {
  ["url"] => string(28) "/account/connected-accounts/"
  ["referrer"] => string(57) "https://site.net/register/connected-accounts/asi_apple/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Code:
Template error: [E_WARNING] Undefined property: stdClass::$name src/addons/Truonglv/AppleSignIn/ConnectedAccount/ProviderData/Apple.php:50

#0 src/addons/Truonglv/AppleSignIn/ConnectedAccount/ProviderData/Apple.php(50): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Und...', '/var/www/site...', 50)
#1 src/XF/ConnectedAccount/ProviderData/AbstractProviderData.php(175): Truonglv\AppleSignIn\ConnectedAccount\ProviderData\Apple->getName()
#2 internal_data/code_cache/templates/l3/s3/public/connected_account_associated_asi_apple.php(7): XF\ConnectedAccount\ProviderData\AbstractProviderData->offsetGet('name')
#3 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, NULL)
#4 src/XF/ConnectedAccount/Provider/AbstractProvider.php(371): XF\Template\Templater->renderTemplate('connected_accou...', Array)
#5 src/XF/Entity/ConnectedAccountProvider.php(83): XF\ConnectedAccount\Provider\AbstractProvider->renderAssociated(Object(XF\Entity\ConnectedAccountProvider), Object(XFRM\XF\Entity\User))
#6 src/XF/Template/Templater.php(1191): XF\Entity\ConnectedAccountProvider->renderAssociated()
#7 internal_data/code_cache/templates/l3/s3/public/connected_account_macros.php(40): XF\Template\Templater->method(Object(XF\Entity\ConnectedAccountProvider), 'renderAssociate...', Array)
#8 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, NULL)
#9 internal_data/code_cache/templates/l3/s3/public/account_connected.php(28): XF\Template\Templater->callMacro('connected_accou...', 'disassociate', Array, Array)
#10 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, NULL)
#11 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('account_connect...', Array)
#12 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#13 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Account\\Conn...', 'public:account_...', Array)
#14 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#15 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#16 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#17 src/XF/App.php(2352): XF\Mvc\Dispatcher->run()
#18 src/XF.php(524): XF\App->run()
#19 index.php(20): XF::runApp('XF\\Pub\\App')
#20 {main}

array(4) {
  ["url"] => string(28) "/account/connected-accounts/"
  ["referrer"] => string(57) "https://site.net/register/connected-accounts/asi_apple/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 

TheCodeby

Member
And these errors occur when testing the connection from the admin panel

Code:
Template error: [E_USER_WARNING] Template admin:connected_account_provider_test_asi_apple is unknown src/XF/Template/Templater.php:689

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/var/www/site...', 689)
#1 src/XF/Template/Templater.php(689): trigger_error('Template admin:...', 512)
#2 src/XF/Template/Templater.php(1618): XF\Template\Templater->getTemplateData('admin', 'connected_accou...')
#3 src/XF/ConnectedAccount/Provider/AbstractProvider.php(356): XF\Template\Templater->renderTemplate('connected_accou...', Array)
#4 src/XF/Template/Templater.php(1191): XF\ConnectedAccount\Provider\AbstractProvider->renderTest(Object(XF\Entity\ConnectedAccountProvider), Object(Truonglv\AppleSignIn\ConnectedAccount\ProviderData\Apple))
#5 internal_data/code_cache/templates/l3/s0/admin/connected_account_provider_test.php(14): XF\Template\Templater->method(Object(Truonglv\AppleSignIn\ConnectedAccount\Provider\Apple), 'renderTest', Array)
#6 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, NULL)
#7 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('connected_accou...', Array)
#8 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#9 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:ConnectedAcc...', 'admin:connected...', Array)
#10 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#12 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#13 src/XF/App.php(2352): XF\Mvc\Dispatcher->run()
#14 src/XF.php(524): XF\App->run()
#15 admin.php(13): XF::runApp('XF\\Admin\\App')
#16 {main}

array(4) {
  ["url"] => string(52) "/admin.php?connected-accounts/asi_apple/perform-test"
  ["referrer"] => string(26) "https://appleid.apple.com/"
  ["_GET"] => array(1) {
    ["connected-accounts/asi_apple/perform-test"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}

Code:
Template error: [E_USER_WARNING] Template admin:connected_account_provider_test_asi_apple is unknown src/XF/Template/Templater.php:689

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/var/www/site...', 689)
#1 src/XF/Template/Templater.php(689): trigger_error('Template admin:...', 512)
#2 src/XF/Template/Templater.php(1618): XF\Template\Templater->getTemplateData('admin', 'connected_accou...')
#3 src/XF/ConnectedAccount/Provider/AbstractProvider.php(356): XF\Template\Templater->renderTemplate('connected_accou...', Array)
#4 src/XF/Template/Templater.php(1191): XF\ConnectedAccount\Provider\AbstractProvider->renderTest(Object(XF\Entity\ConnectedAccountProvider), NULL)
#5 internal_data/code_cache/templates/l3/s0/admin/connected_account_provider_test.php(14): XF\Template\Templater->method(Object(Truonglv\AppleSignIn\ConnectedAccount\Provider\Apple), 'renderTest', Array)
#6 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, NULL)
#7 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('connected_accou...', Array)
#8 src/XF/Mvc/Renderer/Json.php(86): XF\Template\Template->render()
#9 src/XF/Mvc/Renderer/Json.php(70): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:ConnectedAcc...', 'admin:connected...', Array)
#10 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Json->renderView('XF:ConnectedAcc...', 'admin:connected...', Array)
#11 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#12 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#13 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#14 src/XF/App.php(2352): XF\Mvc\Dispatcher->run()
#15 src/XF.php(524): XF\App->run()
#16 admin.php(13): XF::runApp('XF\\Admin\\App')
#17 {main}

array(4) {
  ["url"] => string(185) "/admin.php?connected-accounts/asi_apple/test&_xfRequestUri=%2Fadmin.php%3Fconnected-accounts%2F&_xfWithData=1&_xfToken=1651813306%2***********52cfded53a6e9b0dd&_xfResponseType=json"
  ["referrer"] => string(48) "https://site.net/admin.php?connected-accounts/"
  ["_GET"] => array(5) {
    ["connected-accounts/asi_apple/test"] => string(0) ""
    ["_xfRequestUri"] => string(30) "/admin.php?connected-accounts/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1651813306,************cfded53a6e9b0dd"
    ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}
 
Top