realDebridApiKey || "" === $this->realDebridApiKey) { $this->messages[] = "Your Real Debrid API key is missing. Please set it to the 'REAL_DEBRID_KEY' environment variable."; $valid = false; } if (null === $this->tmdbApiKey || "" === $this->tmdbApiKey) { $this->messages[] = "Your TMDB API key is missing. Please set it to the 'TMDB_API' environment variable."; $valid = false; } if (null !== $this->notificationTransport) { if (null === $this->notificationNtfyDsn || "" === $this->notificationNtfyDsn) { $this->messages[] = "Your NOTIFICATION_TRANSPORT is set to 'ntfy' but you don't have the NTFY_DSN environment variable set."; } } return $valid; } public function getMessages(): array { return $this->messages; } public function authIs(string $method): bool { if (strtolower($method) === strtolower($this->getAuthMethod())) { return true; } return false; } public function getAuthMethod(): string { return strtolower($this->authMethod); } public function bypassFormLogin(): bool { return $this->authOidcBypassFormLogin; } public function getAuthConfig(): array { return [ 'method' => $this->authMethod, 'oidc' => [ 'well_known_url' => $this->authOidcWellKnownUrl, 'client_id' => $this->authOidcClientId, 'client_secret' => $this->authOidcClientSecret, 'bypass_form_login' => $this->authOidcBypassFormLogin, ] ]; } }