ymcatwincities/openy_gated_content

GC Auth YUSA Provider whitescreens on failed login

Closed this issue · 4 comments

$this->logger('openy_gc_auth_yusa')->error($e->getMessage());

Throws:
Error: Call to undefined method Drupal\openy_gc_auth_yusa\YUSAClientService::logger() in Drupal\openy_gc_auth_yusa\YUSAClientService->getUserData() (line 94 of /var/www/docroot/modules/contrib/openy_gated_content/modules/openy_gc_auth/modules/openy_gc_auth_yusa/src/YUSAClientService.php)

\Drupal::logger('openy_gc_auth_yusa')->error($e->getMessage());

Fixes it... poorly, but it should probably be done with dependency injection. I took a stab at that, but didn't make any progress.

To test:

  • enable and configure openy_gc_auth_yusa
  • enter junk for the VY login
  • Current behavior: white screen
  • Expected behavior: A proper user-facing error message.

@froboy is it still an issue ar we can close it?

@froboy is this still an issue or can it be closed?

This is attached the issue: https://openy.atlassian.net/browse/PRODDEV-328 and will be included in the November release. I'm closing out this ticket as a result @froboy