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.ServiceModel;
11 :
12 : namespace Cqrs.Authentication
13 : {
14 : /// <summary>
15 : /// A Factory for creating new authentication tokens of type <see cref="SingleSignOnToken"/>
16 : /// </summary>
17 : [ServiceContract(Namespace = "https://getcqrs.net/SingleSignOn/TokenFactory")]
18 : public interface IDefaultSingleSignOnTokenFactory : ISingleSignOnTokenFactory<SingleSignOnToken>
19 : {
20 : /// <summary>
21 : /// Renew the value of <see cref="ISingleSignOnToken.TimeOfExpiry"/>.
22 : /// </summary>
23 : /// <param name="token">The <see cref="ISingleSignOnToken"/> to renew.</param>
24 : /// <param name="timeoutInMinutes">The amount of time in minutes to set the <see cref="ISingleSignOnToken.TimeOfExpiry"/> to. This is from <see cref="DateTime.UtcNow"/></param>
25 : [OperationContract]
26 1 : ISingleSignOnToken RenewTokenExpiry(ISingleSignOnToken token, int timeoutInMinutes = 360);
27 : }
28 : }
|