C# .NET Rest API for comdirect
Get your oAuth client credentials before you start: https://kunde.comdirect.de/itx/oauth/privatkunden?execution=e3s1
"CdSecondary": {
"type": "oauth2",
"tokenUrl": "https://api.comdirect.de/oauth/token",
"flow": "cd_secondary", >> **"flow": "password"**,
{
"ComdirectCredentials": {
"ClientId": null,
"ClientSecret": null,
"Pin": null,
"Username": null
}
}
Start the Console project https://github.com/do-it-ger/Comdirect.Rest.Api/blob/master/Console.ComdirectApi/Program.cs
Active the login with the comdirect photoTan App https://kunde.comdirect.de/cms/sicherheit-pin-tan.html#mobiletan
Use api carefully!
comdirect API doc:
2.3 Anlage Validierung einer Session-TAN POST URL-Präfix/session/clients/{clientId}/v1/sessions/{sessionId}/validate Beschreibung: Für das nun bekannte Session-Objekt wird in diesem Schritt eine TAN-Challenge angefordert.
[!CAUTION]
Das Abrufen von fünf TAN-Challenges ohne zwischenzeitliche Entwertung einer korrekten TAN führt zur Sperrung des Onlinebanking-Zugangs
MIT.