64 def authenticate(self, configurationAttributes, requestParameters, step):
70 result = self.cas2ExternalAuthenticator.authenticate(configurationAttributes, requestParameters, step)
73 cas2_count_steps = self.cas2ExternalAuthenticator.getCountAuthenticationSteps(configurationAttributes)
74 if cas2_count_steps == 1:
75 result = result
and self.duoExternalAuthenticator.prepareForStep(configurationAttributes, requestParameters, step)
76 result = result
and self.duoExternalAuthenticator.authenticate(configurationAttributes, requestParameters, step)
79 cas2_count_steps = self.cas2ExternalAuthenticator.getCountAuthenticationSteps(configurationAttributes)
80 if cas2_count_steps == 2:
81 result = self.cas2ExternalAuthenticator.authenticate(configurationAttributes, requestParameters, step)
84 result = result
and self.duoExternalAuthenticator.prepareForStep(configurationAttributes, requestParameters, 1)
85 result = result
and self.duoExternalAuthenticator.authenticate(configurationAttributes, requestParameters, 1)
87 duo_count_steps = self.duoExternalAuthenticator.getCountAuthenticationSteps(configurationAttributes)
88 if duo_count_steps == 2:
89 result = self.duoExternalAuthenticator.authenticate(configurationAttributes, requestParameters, step)
92 duo_count_steps = self.duoExternalAuthenticator.getCountAuthenticationSteps(configurationAttributes)
93 if duo_count_steps == 2:
94 result = self.duoExternalAuthenticator.authenticate(configurationAttributes, requestParameters, 2)