Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
M-arcus opened this issue Jun 26, 2024 · 4 comments · Fixed by #440

Comments

@M-arcus
Copy link

M-arcus commented Jun 26, 2024

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
Copy link
Author

M-arcus commented Jun 26, 2024

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

@Philipp91
Copy link
Contributor

So $optionallyPersistEverything is false still?

@Philipp91
Copy link
Contributor

Please try #440, it's a wild guess.

@M-arcus
Copy link
Author

M-arcus commented Jun 27, 2024

So $optionallyPersistEverything is false still?

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

Please try #440, it's a wild guess.

Thank you so much, it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants