@@ -109,13 +109,6 @@ class InternalData(_Datafy):
109
109
A base class for the data carriers between frontends/backends
110
110
"""
111
111
112
- _DEPRECATED_TO_NEW_MEMBERS = {
113
- "name_id" : "subject_id" ,
114
- "user_id" : "subject_id" ,
115
- "user_id_hash_type" : "subject_type" ,
116
- "approved_attributes" : "attributes" ,
117
- }
118
-
119
112
def __init__ (
120
113
self ,
121
114
auth_info = None ,
@@ -124,10 +117,6 @@ def __init__(
124
117
subject_id = None ,
125
118
subject_type = None ,
126
119
attributes = None ,
127
- user_id = None ,
128
- user_id_hash_type = None ,
129
- name_id = None ,
130
- approved_attributes = None ,
131
120
* args ,
132
121
** kwargs ,
133
122
):
@@ -138,21 +127,13 @@ def __init__(
138
127
:param subject_id:
139
128
:param subject_type:
140
129
:param attributes:
141
- :param user_id:
142
- :param user_id_hash_type:
143
- :param name_id:
144
- :param approved_attributes:
145
130
146
131
:type auth_info: AuthenticationInformation
147
132
:type requester: str
148
133
:type requester_name:
149
134
:type subject_id: str
150
135
:type subject_type: str
151
136
:type attributes: dict
152
- :type user_id: str
153
- :type user_id_hash_type: str
154
- :type name_id: str
155
- :type approved_attributes: dict
156
137
"""
157
138
super ().__init__ (self , * args , ** kwargs )
158
139
self .auth_info = (
@@ -166,26 +147,6 @@ def __init__(
166
147
if requester_name is not None
167
148
else [{"text" : requester , "lang" : "en" }]
168
149
)
169
- self .subject_id = (
170
- subject_id
171
- if subject_id is not None
172
- else user_id
173
- if user_id is not None
174
- else name_id
175
- if name_id is not None
176
- else None
177
- )
178
- self .subject_type = (
179
- subject_type
180
- if subject_type is not None
181
- else user_id_hash_type
182
- if user_id_hash_type is not None
183
- else None
184
- )
185
- self .attributes = (
186
- attributes
187
- if attributes is not None
188
- else approved_attributes
189
- if approved_attributes is not None
190
- else {}
191
- )
150
+ self .subject_id = subject_id
151
+ self .subject_type = subject_type
152
+ self .attributes = attributes if attributes is not None else {}
0 commit comments