Documentation Coverage Report
Current view: top level - Cqrs/Authentication - SingleSignOnTokenWithUserRsn.cs Hit Total Coverage
Version: 2.2 Artefacts: 2 2 100.0 %
Date: 2017-09-22

          Line data    Source code
       1             : #region Copyright
       2             : // // -----------------------------------------------------------------------
       3             : // // <copyright company="Chinchilla Software Limited">
       4             : // //   Copyright Chinchilla Software Limited. All rights reserved.
       5             : // // </copyright>
       6             : // // -----------------------------------------------------------------------
       7             : #endregion
       8             : 
       9             : using System;
      10             : using System.ComponentModel.DataAnnotations;
      11             : using System.Runtime.Serialization;
      12             : using Cqrs.DataStores;
      13             : 
      14             : namespace Cqrs.Authentication
      15             : {
      16             :         /// <summary>
      17             :         /// This is a <see cref="ISingleSignOnToken"/> that includes an identifiable <see cref="UserRsn"/> to optimise the hits of the <see cref="IDataStore{TData}">DataStores</see> by including data you most likely need.
      18             :         /// As such, if not used correctly, this can expose identifiable information.
      19             :         /// It is suggested the service layer populates this before sending commands as part of authorisation/authentication.
      20             :         /// </summary>
      21             :         public class SingleSignOnTokenWithUserRsn : SingleSignOnToken, ISingleSignOnTokenWithUserRsn
      22           1 :         {
      23             :                 /// <summary>
      24             :                 /// The Rsn of the user doing the operation. When used by an external 3rd party this is the person being impersonated, not the 3rd party system itself.
      25             :                 /// </summary>
      26             :                 [Required]
      27             :                 [DataMember]
      28             :                 public Guid UserRsn { get; set; }
      29             : 
      30             :                 /// <summary>
      31             :                 /// Returns <see cref="UserRsn"/>.
      32             :                 /// </summary>
      33             :                 /// <returns><see cref="UserRsn"/>.</returns>
      34           1 :                 public override string Serialise()
      35             :                 {
      36             :                         return UserRsn.ToString("N");
      37             :                 }
      38             :         }
      39             : }

Generated by: LCOV version 1.10