mirror of https://github.com/jumpserver/jumpserver
perf: 兼容不同版本间JumpServer获取的SAML2协议用户属性
parent
889713f00e
commit
755fa8efa8
|
@ -171,6 +171,7 @@ class PrepareRequestMixin:
|
|||
valid_attrs = ['username', 'name', 'email', 'comment', 'phone']
|
||||
|
||||
for attr, value in attrs.items():
|
||||
attr = attr.rsplit('/')[-1]
|
||||
if attr not in valid_attrs:
|
||||
continue
|
||||
user_attrs[attr] = self.value_to_str(value)
|
||||
|
|
Loading…
Reference in New Issue