Skip to content

Commit

Permalink
Test: Passkey test cases with diffferent auth_methods
Browse files Browse the repository at this point in the history
Added following test cases
1. Check authentication of user with IPA server when
no pin set for the Passkey.
2. Check authentication of user with updated prompting
options
3. Check password authentication of user with IPA server
when sssd fall back to password authentication

Signed-off-by: Madhuri Upadhye <mupadhye@redhat.com>
  • Loading branch information
madhuriupadhye committed Sep 30, 2024
1 parent 823d787 commit 390b775
Show file tree
Hide file tree
Showing 8 changed files with 230 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
passkey:bjxRHsB/AXOOfZSeofVLuJZymEVMlNIica/jDaBQ2Ku+tFgaRnmk1q6c0t8OeX4ykiWs0J39SjySi142Kuw8tA==,MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE2dKjseUv7dBMVB1+kGrkuFkMM9pblYf6wyo5V4Ue2HN49oRD9/mDx8WDZP4nl8yRuKVEJMoMRwCy2GPEcW+YjQ==
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
d 0 /dev/hidraw1

w 2 ^@�����^@^H^A^A^A^A^A^A^A^A^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 3 �����^@^Q^A^A^A^A^A^A^A^A�ˏ-^B^E^D^C^E^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
w 1 ^@�ˏ-�^@^A^D^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 2 �ˏ-�^@�^@�^A�fU2F_V2hFIDO_2_0lFIDO_2_1_PRE^B�kcredProtectkhmac-secr�ˏ-^@et^CP/�W��^SG�^V�Z�� *^D�brk�bup�dplat�iclientPin�ucredentialM�ˏ-^AgmtPreview�^E^Y^D�^F�^B^A^G^H^H^X�^I�cnfccusb^J��calg&dtypejpublic-key��ˏ-^Bcalg'dtypejpublic-key^M^D^N^Z^@^E^D^C^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
w 2 ^@�ˏ-�^@�^B�^Ahipa.test^BX ^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^C��bidX@n<^@�ˏ-^@Q^^�^As�}����K��r�EL��"q��^M�Pث��X^ZFy�֮���^Ny~2�%�Н�J<��^`6*^@�ˏ-^A�<�dtypejpublic-key^E�bup�^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 83 �ˏ-�^@�^@�^A�bidX@n<Q^^�^As�}����K��r�EL��"q��^M�Pث��X^ZFy�֮���^Ny~2�ˏ-^@�%�Н�J<��^`6*�<�dtypejpublic-key^BX%�^@�|���Dږ^Qx??�d^Q/N�4�/o�ˏ-^AC���}.�[^@^@^@^@^J^CXG0E^B ^_��8H�i�h�^T�^^^U^Uٜ=^N׊^E�^S�u�^^��^B!^@�����ˏ-^B:�H��^`�e^O�������(�!��ja��H^T^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
w 3 ^@�ˏ-�^@^F^F�^A^B^B^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 3 �ˏ-�^@Q^@�^A�^A^B^C8^X ^A!X ���^E�����h^Ql�e$��^\��^E^H�4'I�?O��"X ^` �^C1�^I^L�ˏ-^@l��L��1�i��5�I��cRk^J�Z�s^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
w 3 ^@�ˏ-�^@x^F�^A^B^B^E^C�^A^B^C8^X ^A!X 3�B�1�ˠ^S�^\^Ev�,�^P<Rij��,Q�\���b"X [�^M^J^@�ˏ-^@�G8��������5��Q\^\^U��^E�Q!^FX ^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A��(�:^L�n*‹^@�ˏ-^A�ƈ�^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 79 �ˏ-�^@5^@�^BX0U5�^H*��\�c�OY��K�H�j��hv����դ\��z���T>F^A'0��΂^@^@^@^@
w 1 ^@�ˏ-�^@�^B�^Ahipa.test^BX ^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^C��bidX@n<^@�ˏ-^@Q^^�^As�}����K��r�EL��"q��^M�Pث��X^ZFy�֮���^Ny~2�%�Н�J<��^`6*^@�ˏ-^A�<�dtypejpublic-key^E�bup�^FX �d�S�m^O��6�^_��^I��{g{^Qc�Г@M�^G^@�ˏ-^B^H^G^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 227 �ˏ-�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 290 �ˏ-�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
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@^@^@^@^@^@^@^@
r 288 �ˏ-�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 290 �ˏ-�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 288 �ˏ-�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 290 �ˏ-�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 288 �ˏ-�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 290 �ˏ-�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 198 �ˏ-�^@�^@�^A�bidX@n<Q^^�^As�}����K��r�EL��"q��^M�Pث��X^ZFy�֮���^Ny~2�ˏ-^@�%�Н�J<��^`6*�<�dtypejpublic-key^BX%�^@�|���Dږ^Qx??�d^Q/N�4�/o�ˏ-^AC���}.�[^E^@^@^@^N^CXH0F^B!^@�Z�^@�^`��O�� �e�^M��Ż�D^K�ڽ�^Vy��*^B!^@�^E.�ˏ-^Bp��^O-�އ4����Pڵ@RuڒS^U�9\���^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
passkey:SSgOUcGCN5WWyIfxAKkFN2HJ+Ko98UVT+O+P0cFgP0YYAKY2zhbFnjT5ZYOwh6Z1h4/7gZIPVEjF4TY6vmPbHg==,MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEHoY7OmDGaK3Q5EVB2LdtP1Gyko6Fz5j5KhLSKy0jKJ47QngRYc6nfzfhnQ2LQpCxbbQcnxnhkNDZugkx9VC1gQ==
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
d 0 /dev/hidraw1

w 3 ^@�����^@^H^A^A^A^A^A^A^A^A^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 2 �����^@^Q^A^A^A^A^A^A^A^ArE�^B^E^D^C^E^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
w 1 ^@rE�^@^A^D^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 3 rE�^@�^@�^A�fU2F_V2hFIDO_2_0lFIDO_2_1_PRE^B�kcredProtectkhmac-secrrE�^@et^CP/�W��^SG�^V�Z�� *^D�brk�bup�dplat�iclientPin�ucredentialMrE�^AgmtPreview�^E^Y^D�^F�^B^A^G^H^H^X�^I�cnfccusb^J��calg&dtypejpublic-key�rE�^Bcalg'dtypejpublic-key^M^D^N^Z^@^E^D^C^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
w 1 ^@rE�^@�^B�^Ahipa.test^BX ^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^C��bidX@I(^@rE�^@^NQ��7��ȇ�^@�^E7a���=�ES����`?F^X^@�6�^VŞ4�e����u�����^OTH��6:�^@rE�^Ac�^^dtypejpublic-key^E�bup�^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 83 rE�^@�^@�^A�bidX@I(^NQ��7��ȇ�^@�^E7a���=�ES����`?F^X^@�6�^VŞ4�e����urE�^@�����^OTH��6:�c�^^dtypejpublic-key^BX%�^@�|���Dږ^Qx??�d^Q/N�4�/orE�^AC���}.�[^@^@^@^@^I^CXF0D^B hm�i�e^UЯ�Z^Hb^\Mu�&����^N��6���ν�^B ,r�^SOrE�^B�-0G]���^W��ִ����"u!��^DU�]�^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
w 4 ^@rE�^@^F^F�^A^B^B^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 2 rE�^@Q^@�^A�^A^B^C8^X ^A!X d^O�^HPûw��7^H-}_��h���X��W8�R^U�h0"X W�Z�1^Z�RrE�^@w8^R.#�=m[4�v�^U<�l�m�9�ġ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
w 5 ^@rE�^@x^F�^A^B^B^E^C�^A^B^C8^X ^A!X 3�B�1�ˠ^S�^\^Ev�,�^P<Rij��,Q�\���b"X [�^M^J^@rE�^@�G8��������5��Q\^\^U��^E�Q!^FX ^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A��m(�_"v^XE��^@rE�^A^^�o�^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 79 rE�^@5^@�^BX0-s�P�^Q43^Rp�Q�����q�E�m�^Db��[S�k�^M�^K�݌�s�^]��N^@^@^@^@
w 1 ^@rE�^@�^B�^Ahipa.test^BX ^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^C��bidX@I(^@rE�^@^NQ��7��ȇ�^@�^E7a���=�ES����`?F^X^@�6�^VŞ4�e����u�����^OTH��6:�^@rE�^Ac�^^dtypejpublic-key^E�bup�^FX ^Z1bĪ��y��|^^\T��o�4�^M$�*X^Z?_�g�^@rE�^B�^G^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 213 rE�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 288 rE�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 288 rE�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 290 rE�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@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^@^@^@^@
r 290 rE�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 288 rE�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 288 rE�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 126 rE�^@�^@�^A�bidX@I(^NQ��7��ȇ�^@�^E7a���=�ES����`?F^X^@�6�^VŞ4�e����urE�^@�����^OTH��6:�c�^^dtypejpublic-key^BX%�^@�|���Dږ^Qx??�d^Q/N�4�/orE�^AC���}.�[^E^@^@^@^J^CXH0F^B!^@�L^Z�K�^F^T�8G�1��[^JF�LF�������"^R��^B!^@�frE�^B���p^C��^J��AP���vP�5�/��^E�yv�^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
passkey:us0eBiX3rqdGTYS3vKoYcazLJFX5raek9hYSTGmVBq2fkUkjElUiITXtJQofnIPwYAc4D4w5+Sn27EuD/bejoA==,MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAENx1bON3YvOlfpOp4UrObEwl4VoKqqahDIM033nBHkm9c7759s3ZbbxlOBRHicrzhIey5Z3THT6jtlMb9mv+Kyg==
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
d 0 /dev/hidraw1

w 3 ^@�����^@^H^A^A^A^A^A^A^A^A^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 3 �����^@^Q^A^A^A^A^A^A^A^A���c^B^E^D^C^E^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
w 1 ^@���c�^@^A^D^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 3 ���c�^@�^@�^A�fU2F_V2hFIDO_2_0lFIDO_2_1_PRE^B�kcredProtectkhmac-secr���c^@et^CP/�W��^SG�^V�Z�� *^D�brk�bup�dplat�iclientPin�ucredentialM���c^AgmtPreview�^E^Y^D�^F�^B^A^G^H^H^X�^I�cnfccusb^J��calg&dtypejpublic-key����c^Bcalg'dtypejpublic-key^M^D^N^Z^@^E^D^C^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
w 1 ^@���c�^@�^B�^Ahipa.test^BX ^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^C��bidX@��^@���c^@^^^F%���FM����^Xq��$U�����^V^RLi�^F���I#^RU"!5�%^J^_���`^G8^O�9�)��K��^@���c^A���dtypejpublic-key^E�bup�^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 83 ���c�^@�^@�^A�bidX@��^^^F%���FM����^Xq��$U�����^V^RLi�^F���I#^RU"!5�%^J^_����c^@`^G8^O�9�)��K�����dtypejpublic-key^BX%�^@�|���Dږ^Qx??�d^Q/N�4�/o���c^AC���}.�[^@^@^@^@^K^CXG0E^B!^@�€���^O?\�� ��^M�f�L���@^VP@M^C���B^B 0��Ɣ��c^B0^O�H\^CQ�"^E--�*��e��^P^T��!3^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
w 1 ^@���c�^@�^B�^Ahipa.test^BX ^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^C��bidX@��^@���c^@^^^F%���FM����^Xq��$U�����^V^RLi�^F���I#^RU"!5�%^J^_���`^G8^O�9�)��K��^@���c^A���dtypejpublic-key^E�bup�^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 261 ���c�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 288 ���c�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 290 ���c�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 287 ���c�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 290 ���c�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 288 ���c�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 291 ���c�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 288 ���c�^@^A^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
r 221 ���c�^@�^@�^A�bidX@��^^^F%���FM����^Xq��$U�����^V^RLi�^F���I#^RU"!5�%^J^_����c^@`^G8^O�9�)��K�����dtypejpublic-key^BX%�^@�|���Dږ^Qx??�d^Q/N�4�/o���c^AC���}.�[^A^@^@^@^M^CXF0D^B e�_�r^Y���b�#V�4�j-RF�㬑�^YLܱ}��^B Ag��^R���c^Bh�Q^J��c7�^^^V[xg�0^`������^Hӆ^D^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
3 changes: 2 additions & 1 deletion src/tests/system/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ git+https://github.com/next-actions/pytest-mh
git+https://github.com/next-actions/pytest-ticket
git+https://github.com/next-actions/pytest-tier
git+https://github.com/next-actions/pytest-output
git+https://github.com/SSSD/sssd-test-framework
#git+https://github.com/SSSD/sssd-test-framework
git+https://github.com/madhuriupadhye/sssd-test-framework@no_pin
148 changes: 148 additions & 0 deletions src/tests/system/tests/test_passkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,3 +740,151 @@ def test_passkey__su_with_12_mappings(
)
in output
), "Get the console message about TGT"


@pytest.mark.importance("critical")
@pytest.mark.topology(KnownTopology.IPA)
@pytest.mark.builtwith(client="passkey", ipa="passkey")
@pytest.mark.ticket(gh=6931)
def test_passkey__su_no_pin_set(
client: Client, ipa: IPA, moduledatadir: str, testdatadir: str, umockdev_ipaotpd_update
):
"""
:title: Check authentication of user with IPA server when no pin set for the Passkey
:setup:
1. Add a user with --user-auth-type=passkey in the IPA server
2. Modify Passkey configuration to set require user verification during authentication to false
3. Setup SSSD client with FIDO and umockdev, start SSSD service
:steps:
1. Check authentication of the user when no pin set for the Passkey
2. Check the TGT of user
:expectedresults:
1. User authenticates successfully
2. Get TGT after authentication of user
:customerscenario: False
"""
with open(f"{testdatadir}/passkey-mapping.ipa") as f:
ipa.user("user1").add(user_auth_type="passkey").passkey_add(f.read().strip())

ipa.host.conn.run("ipa passkeyconfig-mod --require-user-verification=False", raise_on_error=False)
client.sssd.start(service_user="root")

rc, _, output, _ = client.auth.su.passkey_with_output(
username="user1",
device=f"{moduledatadir}/umockdev.device",
ioctl=f"{moduledatadir}/umockdev.ioctl",
script=f"{testdatadir}/umockdev.script.ipa",
command="klist",
auth_method="PasskeyAuthenticationUseCases.PASSKEY_NO_PIN_NO_PROMPTS",
)

# ipa.host.conn.run("ipa passkeyconfig-mod --require-user-verification=True", raise_on_error=False)

assert rc == 0, "Authentication failed"
assert "Ticket cache" in output, "Failed to get the TGT"
assert not (
(
"No Kerberos TGT granted as the server does not support this method. "
"Your single-sign on(SSO) experience will be affected"
)
in output
), "Got the console message about No Kerberos TGT granted"


@pytest.mark.importance("critical")
@pytest.mark.topology(KnownTopology.IPA)
@pytest.mark.builtwith(client="passkey", ipa="passkey")
@pytest.mark.ticket(gh=6931)
def test_passkey__prompt_options(
client: Client, ipa: IPA, moduledatadir: str, testdatadir: str, umockdev_ipaotpd_update
):
"""
:title: Check authentication of user with updated prompting options
:setup:
1. Add a user in the server with passkey mappings
2. Add the prompting options to sssd.conf file
3. Setup SSSD client with FIDO and umockdev, start SSSD service
:steps:
1. Check authentication of the user
2. Check the updated prompt options
:expectedresults:
1. User authenticates successfully
2. Got the updated prompt options
:customerscenario: False
"""
with open(f"{testdatadir}/passkey-mapping.ipa") as f:
ipa.user("user1").add(user_auth_type="passkey").passkey_add(f.read().strip())

client.sssd.section("prompting/passkey")["interactive"] = "True"
client.sssd.section("prompting/passkey")["interactive_prompt"] = "Please, insert the passkey and press enter"
client.sssd.section("prompting/passkey")["touch"] = "True"
client.sssd.section("prompting/passkey")["touch_prompt"] = "Can you touch the passkey"
client.sssd.start(service_user="root")

rc, _, output, _ = client.auth.su.passkey_with_output(
username="user1",
device=f"{moduledatadir}/umockdev.device",
ioctl=f"{moduledatadir}/umockdev.ioctl",
script=f"{testdatadir}/umockdev.script.ipa",
pin=123456,
interactive_prompt="Please, insert the passkey and press enter",
touch_prompt="Can you touch the passkey",
command="klist",
auth_method="PasskeyAuthenticationUseCases.PASSKEY_PIN_AND_PROMPTS",
)

assert rc == 0, "Authentication failed"
assert "Ticket cache" in output, "Failed to get the TGT"
assert (
not (
"No Kerberos TGT granted as the server does not support this method."
"Your single-sign on(SSO) experience will be affected"
)
in output
), "Got the console message about No Kerberos TGT granted"


@pytest.mark.importance("critical")
@pytest.mark.topology(KnownTopology.IPA)
@pytest.mark.builtwith(client="passkey", ipa="passkey")
@pytest.mark.ticket(gh=7143)
def test_passkey__su_fallback_to_password(
client: Client, ipa: IPA, moduledatadir: str, testdatadir: str, umockdev_ipaotpd_update
):
"""
:title: Check password authentication of user with IPA server when sssd fall back to password authentication
:setup:
1. Add a user with --user-auth-type=passkey, password in the IPA server
2. Setup SSSD client with FIDO and umockdev, start SSSD service
:steps:
1. Check authentication of the user with password
2. Check the TGT of user
:expectedresults:
1. User authenticates successfully
2. Get TGT after authentication of user
:customerscenario: False
"""
with open(f"{testdatadir}/passkey-mapping.ipa") as f:
ipa.user("user1").add(user_auth_type=["passkey", "password"]).passkey_add(f.read().strip())

client.sssd.start(service_user="root")

rc, _, output, _ = client.auth.su.passkey_with_output(
username="user1",
device=f"{moduledatadir}/umockdev.device",
ioctl=f"{moduledatadir}/umockdev.ioctl",
script=f"{testdatadir}/umockdev.script.ipa",
pin="\\n",
command="klist",
auth_method="PasskeyAuthenticationUseCases.PASSKEY_FALLBACK_TO_PASSWORD",
)

assert rc == 0, "Authentication failed"
assert "Ticket cache" in output, "Failed to get the TGT"
assert (
not (
"No Kerberos TGT granted as the server does not support this method."
" Your single-sign on(SSO) experience will be affected"
)
in output
), "Got the console message about No Kerberos TGT granted"

0 comments on commit 390b775

Please sign in to comment.