<?php

declare(strict_types=1);

namespace App\Modules\Identity\Controllers;

use App\Modules\Identity\Services\OidcProviderService;

class OidcController
{
    public function __construct(private readonly OidcProviderService $providerService)
    {
    }

    public function providers(): array
    {
        return [
            'providers' => $this->providerService->configuredProviders(),
        ];
    }

    public function start(string $providerKey): array
    {
        return [
            'status' => 'redirect-placeholder',
            'provider' => $providerKey,
        ];
    }

    public function callback(string $providerKey, array $claims = []): array
    {
        return [
            'status' => 'callback-placeholder',
            'provider' => $providerKey,
            'claims' => $claims,
        ];
    }
}
