You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the new DKB FinTS server, the SCA fails. This is due to the TAN process 2 being used, although it should be process S using a confirmation within the DKB app. This is due to the fact that client.init_tan_response.decoupled is False. This issue is caused by DKB sending two tan segments:
, all tan segments are looped. As the 3955 response comes first, client.init_tan_response is set correctly to a decoupled process. However, when the second response is parsed, it is set to a non-decoupled process due to code 0030. The HITAN segment only contains one segment:
fints.segments.auth.HITAN7( # Zwei-Schritt-TAN-Einreichung Rückmeldung, version 7
header = fints.formals.SegmentHeader('HITAN', 4, 7, 5), # Segmentkopf
tan_process = '4', # TAN-Prozess
task_reference = 'DKB_171GzcQzKGj95PVI1gWiPFSUmA', # Auftragsreferenz
challenge = 'Bitte mit der DKB-App bestätigen.', # Challenge
tan_medium_name = 'Nothing A065 2312160558', # Bezeichnung des TAN-Mediums
),
Expected behavior client.init_tan_response.decoupled is set to true if any of the tan segments contains code 3955
Code required to reproduce
Can be reproduced with the troubleshooting script.
Log output / error message
See above.
Additional context
DKB switched to a new FinTS server under a new URL a few weeks ago. The old one is deprecated. @raphaelm I would be happy to contribute a PR if you specified the desired behaviour esp. in regard to how other banks handle this
The text was updated successfully, but these errors were encountered:
Yeah, I think the decoupled should be set to true in that case
Cool. Do you know whether other banks also send multiple tan segments? In this case it would work to just look at the first tan segment that has an appropriate code and then return the response, but if there were other banks which send segments in order 0030 and then 3955 it could be necessary to look at all segments and return a decoupled response if one of them was 3955
Describe the bug
When using the new DKB FinTS server, the SCA fails. This is due to the TAN process 2 being used, although it should be process S using a confirmation within the DKB app. This is due to the fact that
client.init_tan_response.decoupled
is False. This issue is caused by DKB sending two tan segments:In
python-fints/fints/dialog.py
Line 88 in 0dc1a80
client.init_tan_response
is set correctly to a decoupled process. However, when the second response is parsed, it is set to a non-decoupled process due to code 0030. The HITAN segment only contains one segment:Bank I tested this with
Name of the bank: DKB
FinTS URL: https://fints.dkb.de/fints
Expected behavior
client.init_tan_response.decoupled
is set to true if any of the tan segments contains code 3955Code required to reproduce
Can be reproduced with the troubleshooting script.
Log output / error message
See above.
Additional context
DKB switched to a new FinTS server under a new URL a few weeks ago. The old one is deprecated. @raphaelm I would be happy to contribute a PR if you specified the desired behaviour esp. in regard to how other banks handle this
The text was updated successfully, but these errors were encountered: