Przeglądaj źródła

HUE-9398 [core] Add attribute_map_dir saml configuration. (#1196)

* HUE-9396 [core] Implement SAML groups check and redirect them to 403 page if not permitted.

Testing Done:
- Tested on private setup

* HUE-9398 [core] Add attribute_map_dir saml configuration.

"attribute_map_dir": "attribute-maps" Points to a directory which has the attribute maps in Python modules.
Prakash Ranade 5 lat temu
rodzic
commit
24c0344d07
1 zmienionych plików z 17 dodań i 0 usunięć
  1. 17 0
      tools/container/hue/hueconf/saml_attributes/cldr.py

+ 17 - 0
tools/container/hue/hueconf/saml_attributes/cldr.py

@@ -0,0 +1,17 @@
+MAP = {
+  "identifier": "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified",
+  "fro": {
+    'uid': 'uid',
+    'https://cdp.cloudera.com/SAML/Attributes/groups': 'groups',
+    'urn:oid:2.5.4.4': 'last_name',
+    'urn:oid:2.5.4.42': 'first_name',
+    'urn:oid:0.9.2342.19200300.100.1.3': 'email'
+  },
+  "to": {
+    'uid': 'uid',
+    'groups': 'https://cdp.cloudera.com/SAML/Attributes/groups',
+    'last_name': 'urn:oid:2.5.4.4',
+    'first_name': 'urn:oid:2.5.4.42',
+    'email': 'urn:oid:0.9.2342.19200300.100.1.3'
+  }
+}