Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pam/gdm): Fix and test handling of gdm qrcode regeneration #402

Merged
merged 14 commits into from
Jul 4, 2024

Commits on Jul 3, 2024

  1. pam/gdm/extension: Do not write debug output twice

    We already write a similar output in conversation, and that's enough
    3v1n0 committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    8e0e46e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    023c6ce View commit details
    Browse the repository at this point in the history
  3. pam/integration-tests/gdm: Increase timeout and do not end Pam transa…

    …ction in such case
    
    If we're already about to fail because of a timeout don't cleanup the
    transaction because we may end up stopping ongoing conversations which
    will lead to a panic, without clear explaination
    3v1n0 committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    4974081 View commit details
    Browse the repository at this point in the history
  4. pam/integration-tests/gdm: Rename authModeIDs to wantAuthModeIDs

    This is an expectation, not really something we're doing in the test so
    change the value as expected
    3v1n0 committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    a1b8127 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    05c533b View commit details
    Browse the repository at this point in the history
  6. pam/integration-tests/gdm: Always use unique user names in tests

    Since we are sharing the daemon we should not reuse the same user
    multiple time, so generate them based on the test name to avoid even
    manual clashes
    3v1n0 committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    7a77d33 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0153852 View commit details
    Browse the repository at this point in the history
  8. pam/integration-tests/gdm: Mimic more the gdm behavior on auth events

    In gdm when the authentication stage is changed we reset the currently
    svaed states, so do it also in the integration test mock to respect what
    the UI would do
    3v1n0 committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    58f0335 View commit details
    Browse the repository at this point in the history
  9. pam/gdm_test: Support replying to a GDM event with multiple events

    Sometimes we may want to respond to a specific gdm event with multiple
    poll responses, to allow this, without refactor the world, we can just
    create a simple fake event and use its type as a counter for the events
    we want to group.
    
    When preceding events with this fake event, then the following N events
    will be added to the poll responses
    3v1n0 committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    e82ae9e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    5ac89c5 View commit details
    Browse the repository at this point in the history
  11. pam/gdmmodel: Support cancelling authentication all the times

    Cancellation needs to be possible everytime we're in challenge mode, but
    this is handled already by the authentication backend so don't bother
    adding the logic here.
    
    Since in this way we'll prevent being able to cancel authentications
    that are in "wait" state and so when we're not anymore waiting for user
    authentication request, but only for the broker reply.
    3v1n0 committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    f4ed03c View commit details
    Browse the repository at this point in the history
  12. pam/gdmmodel: Reset the waiting authentication on reselect auth mode

    After this happens we're gonna receive a further start authentication
    event, so we need to stop considering the model being in auth phase
    3v1n0 committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    c912c14 View commit details
    Browse the repository at this point in the history
  13. pam/client-dummy: Add support for cancelling isAuthenticated request

    When waiting we may want to be able to cancel it, so support it
    3v1n0 committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    7c4e2e4 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    fe1e2d5 View commit details
    Browse the repository at this point in the history