]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
Return 'auth' information in FinTSPinTanClient.get_information()
authorHenryk Plötz <henryk@ploetzli.ch>
Thu, 30 Aug 2018 23:48:59 +0000 (01:48 +0200)
committerRaphael Michel <mail@raphaelmichel.de>
Mon, 3 Dec 2018 18:34:29 +0000 (19:34 +0100)
fints/client.py

index da41515ad87dcf9c5f41adf5857ef8ef77b97f7e..4227af5df0b280ca75155cebc4c140f49c69be12 100644 (file)
@@ -1016,3 +1016,11 @@ class FinTS3PinTanClient(FinTS3Client):
             for resp in response.response_segments(seg, 'HITAB'):
                 return resp.tan_usage_option, list(resp.tan_media_list)
 
+    def get_information(self):
+        retval = super().get_information()
+        retval['auth'] = {
+            'current_tan_mechanism': self.get_current_tan_mechanism(),
+            'tan_mechanisms': self.get_tan_mechanisms(),
+        }
+        return retval
+