浏览代码

[core] Fix default values for SAML user_attribute_mapping

The SAML user_attribute_mapping expects a dict with tuple values, e.g. -
user_attribute_mapping={'uid': ('username', )}
Jenny Kim 10 年之前
父节点
当前提交
cfdbebd
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      desktop/conf.dist/hue.ini
  2. 1 1
      desktop/conf/pseudo-distributed.ini.tmpl

+ 1 - 1
desktop/conf.dist/hue.ini

@@ -1225,7 +1225,7 @@
   ## cert_file=
   ## cert_file=
 
 
   # A mapping from attributes in the response from the IdP to django user attributes.
   # A mapping from attributes in the response from the IdP to django user attributes.
-  ## user_attribute_mapping={'uid':'username'}
+  ## user_attribute_mapping={'uid': ('username', )}
 
 
   # Have Hue initiated authn requests be signed and provide a certificate.
   # Have Hue initiated authn requests be signed and provide a certificate.
   ## authn_requests_signed=false
   ## authn_requests_signed=false

+ 1 - 1
desktop/conf/pseudo-distributed.ini.tmpl

@@ -1227,7 +1227,7 @@
   ## cert_file=
   ## cert_file=
 
 
   # A mapping from attributes in the response from the IdP to django user attributes.
   # A mapping from attributes in the response from the IdP to django user attributes.
-  ## user_attribute_mapping={'uid':'username'}
+  ## user_attribute_mapping={'uid': ('username', )}
 
 
   # Have Hue initiated authn requests be signed and provide a certificate.
   # Have Hue initiated authn requests be signed and provide a certificate.
   ## authn_requests_signed=false
   ## authn_requests_signed=false