From 992237eeab0c68a3f350274f155fa53a086a79c6 Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 24 Jun 2017 15:55:25 +0900 Subject: [PATCH] [Modify] Add it To support issue #367. --- .../Server/HttpRequestEventArgs.cs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/websocket-sharp/Server/HttpRequestEventArgs.cs b/websocket-sharp/Server/HttpRequestEventArgs.cs index e283a5ff..ca20ff05 100644 --- a/websocket-sharp/Server/HttpRequestEventArgs.cs +++ b/websocket-sharp/Server/HttpRequestEventArgs.cs @@ -28,6 +28,7 @@ using System; using System.IO; +using System.Security.Principal; using System.Text; using WebSocketSharp.Net; @@ -98,6 +99,25 @@ namespace WebSocketSharp.Server } } + /// + /// Gets the information for the client. + /// + /// + /// + /// A instance or + /// if not authenticated. + /// + /// + /// That instance describes the identity, authentication scheme, + /// and security roles for the client. + /// + /// + public IPrincipal User { + get { + return _context.User; + } + } + #endregion #region Private Methods