Skip to content

Commit 238268a

Browse files
committed
Revert "tweak to comply more with C++/irod4j native auth approach"
This reverts commit 702f723.
1 parent 571a1e5 commit 238268a

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

irods/auth/pam_interactive.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -223,18 +223,8 @@ def authenticated(self, request):
223223
def native_auth(self, request):
224224
resp = request.copy()
225225

226-
# TODO: removing AUTH_PASSWORD_KEY as done in C++ and irods4j clients
227-
AUTH_PASSWORD_KEY = "a_pw" # <--- TODO: clean up by importing
228-
229-
resp.pop(AUTH_PASSWORD_KEY, "")
230-
231-
# TODO may need to define user_name and zone_name properties
232-
native_auth_request = {"zone_name": resp["zone_name"],
233-
"user_name": resp["user_name"],
234-
"password": resp["request_result"]}
235-
236226
# The native auth function will use the depot to retrieve the password token
237-
_authenticate_native(self.conn, native_auth_request)
227+
_authenticate_native(self.conn, request)
238228

239229
resp[__NEXT_OPERATION__] = __FLOW_COMPLETE__
240230
self.loggedIn = 1

0 commit comments

Comments
 (0)