Skip to content
This repository was archived by the owner on Jun 23, 2021. It is now read-only.
This repository was archived by the owner on Jun 23, 2021. It is now read-only.

Do not require the triggerChallenge #2

@cornelinux

Description

@cornelinux

I suggest to not always call the triggerChallenge in the BeginAuthentication.

token = otp_prov.getAuthToken(admin_user, admin_pw);

Usual tokens ("Pushbutton tokens") like the Google Authenticator, hardware devices or the YubiKey do not need a challenge to be triggered. Triggering the challenge requires an administrative account to be configured.

The normal pushButton tokens can simply be validated in the TryEndAuthentication.
Thus I suggest to add a check here

token = otp_prov.getAuthToken(admin_user, admin_pw);
:

If no admin account or adminpw is given in the config.xml, the triggerchallenge should not be called.
This also makes setting up the provider much easier.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions