File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010namespace OxidEsales \SecurityModule \Shared \Core ;
1111
12+ use OxidEsales \SecurityModule \Authentication \OAuth2 \Service \ProviderCollectorInterface ;
1213use OxidEsales \SecurityModule \Authentication \TwoFactorAuth \Settings \TwoFAShopSettingsInterface ;
1314use OxidEsales \SecurityModule \Captcha \Captcha \Image \Service \ImageCaptchaService ;
1415use OxidEsales \SecurityModule \Captcha \Service \CaptchaServiceInterface ;
@@ -52,6 +53,13 @@ public function getImage(): string
5253 return 'data:image/jpeg;base64, ' . base64_encode ($ images [ImageCaptchaService::CAPTCHA_NAME ]);
5354 }
5455
56+ public function getActiveProviders (): iterable
57+ {
58+ $ providers = $ this ->getService (ProviderCollectorInterface::class)->getProviders ();
59+
60+ return array_filter ($ providers , fn ($ provider ) => $ provider ->isActive ());
61+ }
62+
5563 // todo-high: questionable if we want this method here at all, its just for one template - controller instead?
5664 public function isTwoFAEnabledForShop (): bool
5765 {
You can’t perform that action at this time.
0 commit comments