# Functions
CreateService creates a service file and returns its path.
FormUILayout returns an [authd.UILayout] for forms.
NewBinaryRequestDummy creates a new BinaryConvRequest with finalizer for response BinaryResponse.
NewBinaryRequestDummyFromBytes creates a new BinaryConvRequestDummy from an array of bytes.
NewDummyClient returns a Dummy client with the given options.
NewModuleTransactionDummy returns a new PamModuleTransactionDummy.
NewPasswordUILayout returns an [authd.UILayout] for new password forms.
QrCodeUILayout returns an [authd.UILayout] for qr code.
WithAvailableBrokers is the option to define the AvailableBrokers return values.
WithEndSessionReturn is the option to define the EndSession return values.
WithGetAuthenticationModesReturn is the option to define the GetAuthenticationModes return values.
WithGetPreviousBrokerReturn is the option to define the GetPreviousBroker return values.
WithIgnoreSessionIDChecks is the option to ignore session ID checks.
WithIgnoreSessionIDGeneration is the option to ignore session ID checks.
WithIsAuthenticatedMaxRetries is the option to define the IsAuthenticated max retries return values.
WithIsAuthenticatedMessage is the option to define the IsAuthenticated message return values.
WithIsAuthenticatedReturn is the option to define the IsAuthenticated return values.
WithIsAuthenticatedWantChallenge is the option to define the IsAuthenticated wanted challenge.
WithIsAuthenticatedWantSkip is the option to define the IsAuthenticated skip.
WithIsAuthenticatedWantWait is the option to define the IsAuthenticated wait duration.
WithPreviousBrokerForUser is the option to define the default broker ID for users.
WithSelectAuthenticationModeReturn is the option to define the SelectAuthenticationMode return values.
WithSelectBrokerReturn is the option to define the SelectBroker return values.
WithSetDefaultBrokerReturn is the option to define the SetDefaultBroker return values.
WithUILayout is the option to define the UI layouts supported return values.
# Constants
Account is the account.
Auth is the auth.
Deny uses a module that always denys.
ErrArgumentTypeMismatch is used on invalid arguments types.
ErrIgnore is returned when we've an incomplete error.
ErrInvalid is an invalid error value.
ErrInvalidArguments is used on invalid arguments.
ErrInvalidMethod is used on invalid method calls.
ErrReturnMismatch is used on unexpected return values.
Ignore uses a module that we use as ignore return value.
NoFallback add no fallback module.
Optional implies that the module is optional.
Password is the password.
Permit uses a module that always permits.
Required implies that the module is required.
Requisite implies that the module is requisite.
Session is the session.
Sufficient implies that the module is sufficient.
SufficientRequisite implies that the module is sufficient but we'll die on any error.
# Variables
Actions is a map with all the available Actions by their name.
# Structs
BinaryRequestDummy is a dummy pam.BinaryConvRequester implementation.
BinaryResponseDummy is an implementation of pam.BinaryConvResponse.
DummyClient is a dummy implementation of [authd.PAMClient].
ModuleTransactionDummy is an implementation of [pam.ModuleTransaction] for testing purposes.
ServiceLine is the representation of a PAM module service file line.
StringResponseDummy is a simple implementation of pam.StringConvResponse.
# Type aliases
Action represents a PAM action to perform.
Control represents how a PAM module should controlled in PAM service file.
DummyClientOptions is the function signature used to tweak the daemon creation.
ErrorTest is like pam.Error but we redefine some hopefully unused errors to values for testing purposes.
FallBackModule is a type to represent the module that should be used as fallback.