示例#1
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);
            }
        }
示例#2
0
 public Dictionary <string, string> GetDefaultOptions(string authenticationCookie)
 {
     ServiceUtils.Authorize(authenticationCookie, null);
     return(_optionsAddin.GetDefaultOptions());
 }