Beispiel #1
0
        /// <summary>
        /// Common code to stash an authRequest behind in a session.
        /// </summary>
        private static string CreationSession(IAuthenticationRequest authRequest)
        {
            var session = Current.UniqueId().ToString();

            Current.AddToCache(session, authRequest.Serialize(), TimeSpan.FromMinutes(15));

            return(session);
        }
Beispiel #2
0
        /// <summary>
        /// Common code to stash an authRequest behind in a session.
        /// </summary>
        private static string CreationSession(IAuthenticationRequest authRequest)
        {
            var session = Current.UniqueId().ToString();
            Current.AddToCache(session, authRequest.Serialize(), TimeSpan.FromMinutes(15));

            return session;
        }