Skip to content

Conversation

@chrisccoulson
Copy link
Collaborator

This extends AuthRequestor.RequestUserCredential to indicate the type of
the returned credential. Whilst the existing systemd and plymouth
implementations of AuthRequestor will always return the requested
credential types (as we don't know what the user intended to enter), a
future boot UI may provide a way for the user to decide whether to enter
a passphrase, PIN or recovery key and for this to be communicated back
to us.

Whilst this isn't particularly useful right now, I wanted to add the
logic to ActivateContext because it will affects the logic of a follow-up
PR for sending error messages to Plymouth.

Fixes: FR-12439

This extends AuthRequestor.RequestUserCredential to indicate the type of
the returned credential. Whilst the existing systemd and plymouth
implementations of AuthRequestor will always return the requested
credential types (as we don't know what the user intended to enter), a
future boot UI may provide a way for the user to decide whether to enter
a passphrase, PIN or recovery key and for this to be communicated back
to us.

Whilst this isn't particularly useful right now, I wanted to add the
logic to ActivateContext because it will affects the logic of a follow-up
PR for sending error messages to Plymouth.

Fixes: FR-12439
@chrisccoulson chrisccoulson force-pushed the auth-requestor-return-credential-type branch from f2de5c4 to fc52b90 Compare January 30, 2026 09:04
@chrisccoulson chrisccoulson marked this pull request as ready for review January 30, 2026 09:04
Copy link
Collaborator

@pedronis pedronis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@chrisccoulson chrisccoulson merged commit ed37178 into canonical:master Feb 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants