Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login errors with service accounts #735

Open
kevincrafts opened this issue Mar 8, 2024 · 0 comments
Open

Login errors with service accounts #735

kevincrafts opened this issue Mar 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kevincrafts
Copy link
Member

Every time I try logging in with one of our service accounts (webexpress-manager) I get the following error screen:

Screenshot 2024-03-08 at 1 50 28 PM

Looking in the logs I see this error:

Drupal\simplesamlphp_auth\Exception\SimplesamlphpAttributeException: Error in simplesamlphp_auth.module: no valid "urn:oid:2.16.840.1.113730.3.1.241" attribute set. in Drupal\simplesamlphp_auth\Service\SimplesamlphpAuthManager->getAttribute() (line 284 of /code/web/modules/contrib/simplesamlphp_auth/src/Service/SimplesamlphpAuthManager.php).

#0 /code/web/modules/contrib/simplesamlphp_auth/src/Service/SimplesamlphpAuthManager.php(237): Drupal\simplesamlphp_auth\Service\SimplesamlphpAuthManager->getAttribute('urn:oid:2.16.84...')
#1 /code/web/modules/contrib/simplesamlphp_auth/src/Service/SimplesamlphpDrupalAuth.php(247): Drupal\simplesamlphp_auth\Service\SimplesamlphpAuthManager->getDefaultName()
#2 /code/web/modules/contrib/simplesamlphp_auth/src/EventSubscriber/SimplesamlExternalauthSubscriber.php(95): Drupal\simplesamlphp_auth\Service\SimplesamlphpDrupalAuth->synchronizeUserAttributes(Object(Drupal\user\Entity\User))
#3 [internal function]: Drupal\simplesamlphp_auth\EventSubscriber\SimplesamlExternalauthSubscriber->externalauthLogin(Object(Drupal\externalauth\Event\ExternalAuthLoginEvent), 'externalauth.lo...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#4 /code/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Drupal\externalauth\Event\ExternalAuthLoginEvent), 'externalauth.lo...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#5 /code/web/modules/contrib/externalauth/src/ExternalAuth.php(155): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Drupal\externalauth\Event\ExternalAuthLoginEvent), 'externalauth.lo...')
#6 /code/web/modules/contrib/externalauth/src/ExternalAuth.php(83): Drupal\externalauth\ExternalAuth->userLoginFinalize(Object(Drupal\user\Entity\User), 'webexpress-mana...', 'simplesamlphp_a...')
#7 /code/web/modules/contrib/simplesamlphp_auth/src/Service/SimplesamlphpDrupalAuth.php(119): Drupal\externalauth\ExternalAuth->login('webexpress-mana...', 'simplesamlphp_a...')
#8 /code/web/modules/contrib/simplesamlphp_auth/src/Controller/SimplesamlphpAuthController.php(192): Drupal\simplesamlphp_auth\Service\SimplesamlphpDrupalAuth->externalLoginRegister('webexpress-mana...')
#9 [internal function]: Drupal\simplesamlphp_auth\Controller\SimplesamlphpAuthController->authenticate()
#10 /code/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#11 /code/web/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber{closure}()
#12 /code/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#13 /code/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#14 /code/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber{closure}()
#15 /code/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#16 /code/web/modules/custom/ucb_admin_menus/src/Middleware/Redirect403.php(47): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#17 /code/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Drupal\ucb_admin_menus\Middleware\Redirect403->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /code/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /code/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /code/vendor/asm89/stack-cors/src/Cors.php(53): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /code/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Asm89\Stack\Cors->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /code/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /code/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 /code/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 /code/web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /code/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#27 {main}

Can we track this down and see what we need to do to fix it on these accounts and make sure this isn't limited to the service accounts and that other users won't have this experience when logging in?

@kevincrafts kevincrafts added the bug Something isn't working label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant