#1 : Test de Keycloak.

This commit is contained in:
Loic Masi
2026-04-21 11:46:29 +02:00
parent 4157991805
commit 3a116f9bae
15 changed files with 360 additions and 27 deletions

View File

@@ -4,6 +4,7 @@
namespace Webzine.WebApplication.Controllers
{
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Webzine.Repository.Contracts;
@@ -39,6 +40,7 @@ namespace Webzine.WebApplication.Controllers
/// </summary>
/// <param name="mot">Nom d'artiste ou de titre.</param>
/// <returns>Page de recherche avec les r<>sultats.</returns>
[Authorize(Roles = "ADMIN")]
public IActionResult Index(string mot)
{
// Logger la recherche.