Skip to content

Commit

Permalink
change sodar login method to get (bihealth/sodar-server#1999)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Oct 9, 2024
1 parent e9db1ec commit 3a967eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Set up logging with syslog (#16)
- Enable setting `irods-rule-engine-plugin-python` version in `build.sh` (#27)
- Add changelog (#22)
- Change custom SODAR PAM login method from `POST` to `GET` (bihealth/sodar-server#1999)

## v4.2 (2024-01-19)

Expand Down
2 changes: 1 addition & 1 deletion docker/templates/pam_sodar.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def pam_sm_authenticate(pamh, flags, argv):
sodar_host = '{{ IRODS_SODAR_API_HOST }}'
url = sodar_host + '/irodsbackend/api/auth'

response = requests.post(url, auth=(pamh.user, a))
response = requests.get(url, auth=(pamh.user, a))
if response.status_code == 200:
return pamh.PAM_SUCCESS
return pamh.PAM_AUTH_ERR
Expand Down

0 comments on commit 3a967eb

Please sign in to comment.