Skip to content

Commit

Permalink
python-irodsclient: upgrade to v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Dec 20, 2024
1 parent d4af9d9 commit deeaa75
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions roles/irods_icat/templates/oidc.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ USERINFO_URI = "{{ oidc_userinfo_uri | default('') }}"
EMAIL_FIELD = "{{ oidc_email_field | default('email') }}"


def unescape_irods_pam_password(password):
return password.replace('\@', '@')


def validate_token(username, token, sub):
# Send token validation request.
headers = {"Authorization": "Bearer {}".format(token)}
Expand Down Expand Up @@ -58,8 +54,6 @@ def pam_sm_authenticate(pamh, flags, argv):
print('Missing token for user {}'.format(username))
return pamh.PAM_AUTH_ERR

token = unescape_irods_pam_password(token)

# Remove the prefix from the portal.
if token[0:14] == '++oidc_token++':
token = token[14:]
Expand Down
2 changes: 1 addition & 1 deletion roles/python_irodsclient/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

irods_service_account: irods

python_irodsclient_version: 2.2.0
python_irodsclient_version: 3.0.0

0 comments on commit deeaa75

Please sign in to comment.