add exception filter when user not connected default to needing authentication and apply anonymous to some actions add user in get requests add user relation in link, comment and vote signup and in are ok now!
12 lines
230 B
C#
12 lines
230 B
C#
using System;
|
|
|
|
namespace HN.Application
|
|
{
|
|
/// <summary>
|
|
/// Permet de récupérer l'utilisateur courant effectuant une commande.
|
|
/// </summary>
|
|
public interface IExecutingUserProvider
|
|
{
|
|
Guid GetCurrentUserId();
|
|
}
|
|
} |