nemiah / phpFinTS

PHP library to communicate with FinTS/HBCI servers
MIT License
130 stars 39 forks source link

Decoupled authentication is no longer possible because of error “Cannot init another dialog” #439

Closed M-arcus closed 2 months ago

M-arcus commented 2 months ago

I'm using the code from the sample file login.php to access a bank account. Nothing is modified except bank and authentication data, which both are valid.

90 days ago this used to work without issue, however after trying to reauthenticate with a decoupled tan confirmation in the app, the second time checkDecoupledSubmission is executed, it fails:

https://github.com/nemiah/phpFinTS/blob/master/Samples/login.php#L165

Fatal error: Uncaught RuntimeException: Cannot init another dialog. ./lib/Fhp/FinTs.php:429
Stack trace:
#0 ./Samples/login.php(165): Fhp\FinTs->checkDecoupledSubmission(Object(Fhp\Protocol\DialogInitialization))
#1 ./Samples/login.php(45): handleDecoupled(Object(Fhp\Protocol\DialogInitialization))
#2 ./Samples/login.php(195): handleStrongAuthentication(Object(Fhp\Protocol\DialogInitialization))
#3 {main}
  thrown in ./lib/Fhp/FinTs.php on line 429

How can I fix this?

M-arcus commented 2 months ago

The URL is https://banking-hh7.s-fints-pt-hh.de/fints30 and the BIC was 20050550

Philipp91 commented 2 months ago

So $optionallyPersistEverything is false still?

Philipp91 commented 2 months ago

Please try https://github.com/nemiah/phpFinTS/pull/440, it's a wild guess.

M-arcus commented 2 months ago

So $optionallyPersistEverything is false still?

Yes, should I activate it? This did not fix the issue.

Please try https://github.com/nemiah/phpFinTS/pull/440, it's a wild guess.

Thank you so much, it works