-
-
Notifications
You must be signed in to change notification settings - Fork 15
Do not require the triggerChallenge #2
Comments
Maybe I update also the configuration options for this to get more transparency for the behavior. Only SMS or mail challenge needs to be triggered, I guess? |
You are right. SMS token and EMAIL Token require a trigger to be sent. Well the normal way to not use a PIN is to use a otppin policy. |
- Adding the verison to the adapter name - Updated the install script - Updated the config - Add enhancement from #2
I updated the code and documentation to disable the trigger if no admin user is defined. Can I change that behavior at the pID3A? Because in this way it is possible to trigger a challenge for any other user without a admin token. Should I open a issue at the pID3A for that? |
With challenge response token privacyidea will trigger a challenge if the user provides the correct OTP PIN or password in the first authentication step. If your OTP PIN is empty, of course an empty PIN will trigger the challenge, since this is the correct PIN. Of course this will only work with challenge response tokens like SMS and email. So the question is, which scenarios you want to cover. Since you have not implemented the above mentioned way to trigger a challenge but only the triggerchallenge-API I only see thes3 scenqrios:
|
Ah, OK. I didn't configure a PIN for that test token. That's the problem - no PIN = empty PIN then a challenge is triggered. I was confused between the term PIN in case of a token-pin and a OT-Password 😉. Sorry about that. Yes, that's correct. I only implement the case if a users doesn't provide a admin account in the configuration, than no administrative challenge is triggered. The ADFS auth. page should provide the following steps:
One question: I don't saw a Thank you for the correction and help. |
Imho this is not necessary. Since privacyIDEA adds the second factor, you can as well ignore the pin that is managed by privacyIDEA. I.e. in this case you use the challenge admin password. From a users perspective, I would not want to enter the PIN to trigger the sending of SMS. The pass in the API call can either contain:
|
OK, now I should catch the case if no admin account is provided but a challenge-OTP (Mail, SMS...) with a empty PIN in configured for the users. => If no admin account is set = no challenge is triggered at any time => If a OTP-Token with a PIN is configured = the PIN+OTP will be send to the privacyIDEA. The provider doesn't alter the request in any kind. Or I'm wrong 😉 ? |
How do you want to catch the case. If no challenge admin is defined the user needs to trigger the challenge via providing the PIN. You can not know, if a PIN is empty. So in my opinion you do not need to check this. Usually the implementation works this way:
2.1. value = true. The authentication was successful. You can grant access. If you want to, we can take a look at it togeather. Are you at FOSDEM by any chance? |
I suggest to not always call the
triggerChallenge
in theBeginAuthentication
.privacyIDEA-ADFSProvider/privacyIDEAADFSProvider/Adapter.cs
Line 52 in 4aebedc
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
privacyIDEA-ADFSProvider/privacyIDEAADFSProvider/Adapter.cs
Line 52 in 4aebedc
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.
The text was updated successfully, but these errors were encountered: