Skip to content

Commit

Permalink
fix(examplebroker): Improve wording for the regenerate code button la…
Browse files Browse the repository at this point in the history
…bel (#408)

  The user is allowed to regenerate the login code not the QR code, so
  improve the wording here.
  
  Regenerate the golden files based on that

This is not strictly needed, but it's better to align with
ubuntu/authd-oidc-brokers#47
  • Loading branch information
3v1n0 committed Jul 3, 2024
2 parents d000437 + 88dc05e commit dd7d4ce
Show file tree
Hide file tree
Showing 11 changed files with 146 additions and 50 deletions.
2 changes: 1 addition & 1 deletion examplebroker/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func getSupportedModes(sessionInfo sessionInfo, supportedUILayouts []map[string]
"type": "qrcode",
"label": modeLabel,
"wait": "true",
"button": "regenerate QR code",
"button": "Regenerate code",
}),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@









Expand Down Expand Up @@ -72,6 +75,9 @@ Gimme your password









Expand Down Expand Up @@ -112,6 +118,9 @@ Gimme your password









Expand Down Expand Up @@ -140,7 +149,10 @@ Scan the qrcode or enter the code in the login page
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
1337

[ regenerate QR code ]
[ Regenerate code ]






Expand Down Expand Up @@ -180,7 +192,10 @@ Scan the qrcode or enter the code in the login page
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
1337

[ regenerate QR code ]
[ Regenerate code ]






Expand Down Expand Up @@ -220,7 +235,10 @@ Scan the qrcode or enter the code in the login page
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
1337

[ regenerate QR code ]
[ Regenerate code ]






Expand Down Expand Up @@ -276,6 +294,9 @@ PAM AcctMgmt() exited with success






────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -316,4 +337,7 @@ PAM AcctMgmt() exited with success






────────────────────────────────────────────────────────────────────────────────
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@









Expand Down Expand Up @@ -72,6 +75,9 @@ Gimme your password









Expand Down Expand Up @@ -112,6 +118,9 @@ Gimme your password









Expand Down Expand Up @@ -156,6 +165,9 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
1337

[ Regenerate code ]


────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -196,6 +208,9 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
1337

[ Regenerate code ]


────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -236,6 +251,9 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
1337

[ Regenerate code ]


────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -276,6 +294,9 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
1337

PAM Authenticate() for user "user-integration-qr-code-tty" exited with success
PAM AcctMgmt() exited with success
>
────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -316,4 +337,7 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
1337

PAM Authenticate() for user "user-integration-qr-code-tty" exited with success
PAM AcctMgmt() exited with success
>
────────────────────────────────────────────────────────────────────────────────
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@









Expand Down Expand Up @@ -72,6 +75,9 @@ Gimme your password









Expand Down Expand Up @@ -112,6 +118,9 @@ Gimme your password









Expand Down Expand Up @@ -156,6 +165,9 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
1337

[ Regenerate code ]


────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -196,6 +208,9 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
1337

[ Regenerate code ]


────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -236,6 +251,9 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
1337

[ Regenerate code ]


────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -276,6 +294,9 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
1337

PAM Authenticate() for user "user-integration-qr-code-tty-session" exited with success
PAM AcctMgmt() exited with success
>
────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -316,4 +337,7 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
1337

PAM Authenticate() for user "user-integration-qr-code-tty-session" exited with success
PAM AcctMgmt() exited with success
>
────────────────────────────────────────────────────────────────────────────────
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@









Expand Down Expand Up @@ -72,6 +75,9 @@ Gimme your password









Expand Down Expand Up @@ -112,6 +118,9 @@ Gimme your password









Expand Down Expand Up @@ -156,6 +165,9 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
1337

[ Regenerate code ]


────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -196,6 +208,9 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
1337

[ Regenerate code ]


────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -236,6 +251,9 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
1337

[ Regenerate code ]


────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -276,6 +294,9 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
1337

PAM Authenticate() for user "user-integration-qr-code-screen" exited with success
PAM AcctMgmt() exited with success
>
────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -316,4 +337,7 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
1337

PAM Authenticate() for user "user-integration-qr-code-screen" exited with success
PAM AcctMgmt() exited with success
>
────────────────────────────────────────────────────────────────────────────────
Loading

0 comments on commit dd7d4ce

Please sign in to comment.