Ejemplo n.º 1
0
        public Dictionary <string, string> GetUserOptions(string authenticationCookie)
        {
            if (string.IsNullOrEmpty(authenticationCookie))
            {
                return(new Dictionary <string, string>());
            }
            string userName;

            userName = ServiceUtils.Authorize(authenticationCookie, null);

            return(_optionsAddin.GetUserOptions(userName));
        }
Ejemplo n.º 2
0
        public Dictionary <string, string> GetUserOptions(string authenticationCookie)
        {
            if (!string.IsNullOrEmpty(authenticationCookie))
            {
                string userName;

                userName = AuthHandler.Authorize(authenticationCookie, null);

                return(Merge(_optionsAddin.GetUserOptions(userName), GetExposedWebConfigOptions()));
            }
            else
            {
                var options = _optionsAddin.GetDefaultOptions();
                options = options.Where(p => p.Key == "EnableOktaSignIn" || p.Key == "EnableShibbolethSignIn").ToDictionary(p => p.Key, p => p.Value);
                return(options);
            }
        }