Skip to content

Commit

Permalink
YDA-5334: fix token auth script dependency issue
Browse files Browse the repository at this point in the history
When data access tokens are enabled, pysqlcipher3 needs to be
installed globally too for the token authentication script
(in addition to the user-level installation for the ruleset).
  • Loading branch information
stsnel committed Aug 9, 2023
1 parent d34822c commit 5fd0cdd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion roles/irods_icat/tasks/setup_pam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,18 @@
when: enable_tokens


- name: Ensure token authentication is present
# When data access tokens are enabled, pysqlcipher3 needs to be
# installed globally too for the token authentication script
# (in addition to the user-level installation for the ruleset).
- name: Ensure pysqlcipher3 is installed globally for token authentication script
ansible.builtin.pip:
name:
- pysqlcipher3==1.0.4
state: present
when: enable_tokens


- name: Ensure token authentication script is present
ansible.builtin.template:
src: token-auth.py.j2
dest: /usr/local/bin/token-auth.py
Expand Down

0 comments on commit 5fd0cdd

Please sign in to comment.