<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Thema "Re: Betreff: Invalid redirection URL" in Getting started programming with the Viessmann API</title>
    <link>https://community.viessmann.de/t5/Getting-started-programming-with/Invalid-redirection-URL/m-p/275120#M301</link>
    <description>&lt;P&gt;Ich weiß nicht, ob es nur ein Tippfehler hier im Post ist, aber in der zweiten Abfrage ist ein Leerzeichen nach dem ersten "&amp;amp;", also direkt bevor "code_verifier=" beginnt.&lt;/P&gt;
&lt;P&gt;Außerdem kannst du einmal versuchen, einen anderen Code Verifieren und Code Challenge zu verwenden. Nutze dazu gerne folgende Seite für die Generierung: &lt;A href="https://developer.pingidentity.com/en/tools/pkce-code-generator.html" target="_blank"&gt;https://developer.pingidentity.com/en/tools/pkce-code-generator.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Sollte das auch nicht helfen, versuche gerne einmal unsere &lt;A href="https://www.postman.com/vimicho/workspace/viessmann-api-public/collection/12055031-17157e90-a2e8-47b6-a7b8-2320c2941db3?action=share&amp;amp;creator=12055031" target="_blank"&gt;Beispielkollektion in Postman&lt;/A&gt; zu verwenden. Hier sind die Befehle alle vorhanden, die du benötigst und du musst nur noch die Parameter / Variablen füllen / definieren.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2022 14:14:49 GMT</pubDate>
    <dc:creator>CustomerCareMichael</dc:creator>
    <dc:date>2022-11-07T14:14:49Z</dc:date>
    <item>
      <title>Invalid redirection URL</title>
      <link>https://community.viessmann.de/t5/Getting-started-programming-with/Invalid-redirection-URL/m-p/274910#M292</link>
      <description>&lt;P&gt;Hallo zusammen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ich weiß, das das Thema schon x-Mal beschrieben wurde, aber ich komme nicht weiter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Schon wenn ich die erste Testanfrage an die API sende (per Browser genauso wie per curl) bekomme ich immer wieder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"error":"Invalid redirection URI."}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Insgesamt hab ich im Client 3 unterschiedliche URI´s definiert (incl. der default URI) und ich hab&lt;BR /&gt;alle 3 getestet....das Ergebnis bleibt das gleiche.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Ich hab sogar schon den Client an sich neu angelegt - auch nur mit der default-URI. Nehme ich&lt;BR /&gt;zum Test dann die "falsche" ID kommt selbstverständlich auch die Fehlermeldung, dass der Client&lt;BR /&gt;nicht definiert ist - erwartungsgemäß.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hat irgend wer eine Idee?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 10:44:41 GMT</pubDate>
      <guid>https://community.viessmann.de/t5/Getting-started-programming-with/Invalid-redirection-URL/m-p/274910#M292</guid>
      <dc:creator>dcm</dc:creator>
      <dc:date>2022-11-07T10:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid redirection URL</title>
      <link>https://community.viessmann.de/t5/Getting-started-programming-with/Invalid-redirection-URL/m-p/274912#M293</link>
      <description>&lt;P&gt;Hallo &lt;a href="https://community.viessmann.de/t5/user/viewprofilepage/user-id/58964"&gt;@dcm&lt;/a&gt;, könntest du bitte deinen Befehl posten, den du zur Abfrage nutzt?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 10:47:50 GMT</pubDate>
      <guid>https://community.viessmann.de/t5/Getting-started-programming-with/Invalid-redirection-URL/m-p/274912#M293</guid>
      <dc:creator>CustomerCareMichael</dc:creator>
      <dc:date>2022-11-07T10:47:50Z</dc:date>
    </item>
    <item>
      <title>Betreff: Invalid redirection URL</title>
      <link>https://community.viessmann.de/t5/Getting-started-programming-with/Invalid-redirection-URL/m-p/274932#M294</link>
      <description>&lt;P&gt;&lt;A href="https://iam.viessmann.com/idp/v2/authorize?client_id=28d3ee35b2c5a27f41db838f66396c23&amp;amp;redirect_uri=http://localhost:4200/oauth-callback&amp;amp;response_type=code&amp;amp;code_challenge=2e21faa1-db2c-4d0b-a10f-575fd372bc8c-575fd372bc8c&amp;amp;scope=IoT%20User" target="_blank"&gt;https://iam.viessmann.com/idp/v2/authorize?client_id=28d3ee35b2c5a27f41db838f66396c23&amp;amp;redirect_uri=http://localhost:4200/oauth-callback&amp;amp;response_type=code&amp;amp;code_challenge=2e21faa1-db2c-4d0b-a10f-575fd372bc8c-575fd372bc8c&amp;amp;scope=IoT%20User&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 11:04:40 GMT</pubDate>
      <guid>https://community.viessmann.de/t5/Getting-started-programming-with/Invalid-redirection-URL/m-p/274932#M294</guid>
      <dc:creator>dcm</dc:creator>
      <dc:date>2022-11-07T11:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Betreff: Invalid redirection URL</title>
      <link>https://community.viessmann.de/t5/Getting-started-programming-with/Invalid-redirection-URL/m-p/274990#M296</link>
      <description>&lt;P&gt;Thanks. And the redirect URI "&lt;A href="http://localhost:4200/oauth-callback" target="_blank"&gt;http://localhost:4200/oauth-callback&lt;/A&gt;" is set exactly this way for the API client? Could you please also a screenshot of the settings of the client in the API dashboard? Thanks!&lt;/P&gt;&lt;P&gt;EDIT: Sorry, bin auf English gewechselt. Aber hoffe die Anfrage ist klar &lt;span class="lia-unicode-emoji" title=":leicht_lächelndes_Gesicht:"&gt;🙂&lt;/span&gt; Ansonsten übersetze ich es im Anschluss noch.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 11:56:44 GMT</pubDate>
      <guid>https://community.viessmann.de/t5/Getting-started-programming-with/Invalid-redirection-URL/m-p/274990#M296</guid>
      <dc:creator>CustomerCareMichael</dc:creator>
      <dc:date>2022-11-07T11:56:44Z</dc:date>
    </item>
    <item>
      <title>Betreff: Invalid redirection URL</title>
      <link>https://community.viessmann.de/t5/Getting-started-programming-with/Invalid-redirection-URL/m-p/275019#M297</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zuschneiden.jpg" style="width: 400px;"&gt;&lt;img src="https://community.viessmann.de/t5/image/serverpage/image-id/13449i28B175677144374D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zuschneiden.jpg" alt="Zuschneiden.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; nichts leichter als das.....und englisch ist auch kein problem &lt;span class="lia-unicode-emoji" title=":zwinkerndes_Gesicht:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 12:21:16 GMT</pubDate>
      <guid>https://community.viessmann.de/t5/Getting-started-programming-with/Invalid-redirection-URL/m-p/275019#M297</guid>
      <dc:creator>dcm</dc:creator>
      <dc:date>2022-11-07T12:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Betreff: Invalid redirection URL</title>
      <link>https://community.viessmann.de/t5/Getting-started-programming-with/Invalid-redirection-URL/m-p/275031#M298</link>
      <description>&lt;P&gt;Danke! Ich sehe, dass bei den Redirect URIs zwar "&lt;A href="http://localhost:4200/" target="_blank"&gt;http://localhost:4200/&lt;/A&gt;" eingestellt ist, aber nicht "&lt;A href="http://localhost:4200/oauth-callback" target="_blank"&gt;http://localhost:4200/oauth-callback&lt;/A&gt;". Du müsstest also in deinem API Aufruf das "oauth-callback" eintfernen oder die gesamte URL als eine Redirect URI für den client einstellen.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 12:27:39 GMT</pubDate>
      <guid>https://community.viessmann.de/t5/Getting-started-programming-with/Invalid-redirection-URL/m-p/275031#M298</guid>
      <dc:creator>CustomerCareMichael</dc:creator>
      <dc:date>2022-11-07T12:27:39Z</dc:date>
    </item>
    <item>
      <title>Betreff: Invalid redirection URL</title>
      <link>https://community.viessmann.de/t5/Getting-started-programming-with/Invalid-redirection-URL/m-p/275084#M299</link>
      <description>&lt;P&gt;Ups - Sorry, da hätte ich natürlich auch selber drauf kommen können....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kaum macht man es richtig, kommt nach der Abfrage im Browser die Anmeldeseite und danach die erwartete "interne" Seite mit dem Code....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vielen Dank....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 13:18:43 GMT</pubDate>
      <guid>https://community.viessmann.de/t5/Getting-started-programming-with/Invalid-redirection-URL/m-p/275084#M299</guid>
      <dc:creator>dcm</dc:creator>
      <dc:date>2022-11-07T13:18:43Z</dc:date>
    </item>
    <item>
      <title>Betreff: Invalid redirection URL</title>
      <link>https://community.viessmann.de/t5/Getting-started-programming-with/Invalid-redirection-URL/m-p/275115#M300</link>
      <description>&lt;P&gt;Vielleicht noch eine Frage, weil ich mich vermutlich wieder zu blöd anstelle.....&lt;BR /&gt;&lt;BR /&gt;Mein erster Request für die Authentifizierung sieht ja wie folgt aus:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://iam.viessmann.com/idp/v2/authorize?client_id=28d3ee35b2c5a27f41db838f66396c23&amp;amp;redirect_uri=http://172.19.10.3/&amp;amp;response_type=code&amp;amp;code_challenge=2e21faa1-db2c-4d0b-a10f-575fd372bc8c-575fd372bc8c&amp;amp;scope=IoT%20User" target="_blank"&gt;https://iam.viessmann.com/idp/v2/authorize?client_id=28d3ee35b2c5a27f41db838f66396c23&amp;amp;redirect_uri=http://172.19.10.3/&amp;amp;response_type=code&amp;amp;code_challenge=2e21faa1-db2c-4d0b-a10f-575fd372bc8c-575fd372bc8c&amp;amp;scope=IoT%20User&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Das Ergebnis ist wie erwartet die Anmeldeseite. Ich kann mich dann anmelden und erhalte eine Webseite zurück, die nicht gefunden werden kann, aber im Rückgabewert wie folgt aussieht.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://172.19.10.3/?code=1mFTuBK-C_K3vGt4r0CWjZa4ae-7qWRJ-M4JcJv-GMc" target="_blank"&gt;http://172.19.10.3/?code=1mFTuBK-C_K3vGt4r0CWjZa4ae-7qWRJ-M4JcJv-GMc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Den Code setze ich dann in die nächste Abfrage wie folgt ein:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://iam.viessmann.com/idp/v2/token?grant_type=authorization_code&amp;amp;" target="_blank"&gt;https://iam.viessmann.com/idp/v2/token?grant_type=authorization_code&amp;amp;&lt;/A&gt; code_verifier=2e21faa1-db2c-4d0b-a10f-575fd372bc8c-575fd372bc8c&amp;amp;client_id=28d3ee35b2c5a27f41db838f66396c23&amp;amp;redirect_uri=&lt;A href="http://172.19.10.3/&amp;amp;code=1mFTuBK-C_K3vGt4r0CWjZa4ae-7qWRJ-M4JcJv-GMc" target="_blank"&gt;http://172.19.10.3/&amp;amp;code=1mFTuBK-C_K3vGt4r0CWjZa4ae-7qWRJ-M4JcJv-GMc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dann bekomme ich aber nur ein&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{"error":"invalid-token-request"}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Hab das jetzt mehrfach im Ablauf ausprobiert und bin auch deutlich unter den 20s für die Lifetime geblieben, irgendwie finde ich den Fehler nicht.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 14:08:38 GMT</pubDate>
      <guid>https://community.viessmann.de/t5/Getting-started-programming-with/Invalid-redirection-URL/m-p/275115#M300</guid>
      <dc:creator>dcm</dc:creator>
      <dc:date>2022-11-07T14:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Betreff: Invalid redirection URL</title>
      <link>https://community.viessmann.de/t5/Getting-started-programming-with/Invalid-redirection-URL/m-p/275120#M301</link>
      <description>&lt;P&gt;Ich weiß nicht, ob es nur ein Tippfehler hier im Post ist, aber in der zweiten Abfrage ist ein Leerzeichen nach dem ersten "&amp;amp;", also direkt bevor "code_verifier=" beginnt.&lt;/P&gt;
&lt;P&gt;Außerdem kannst du einmal versuchen, einen anderen Code Verifieren und Code Challenge zu verwenden. Nutze dazu gerne folgende Seite für die Generierung: &lt;A href="https://developer.pingidentity.com/en/tools/pkce-code-generator.html" target="_blank"&gt;https://developer.pingidentity.com/en/tools/pkce-code-generator.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Sollte das auch nicht helfen, versuche gerne einmal unsere &lt;A href="https://www.postman.com/vimicho/workspace/viessmann-api-public/collection/12055031-17157e90-a2e8-47b6-a7b8-2320c2941db3?action=share&amp;amp;creator=12055031" target="_blank"&gt;Beispielkollektion in Postman&lt;/A&gt; zu verwenden. Hier sind die Befehle alle vorhanden, die du benötigst und du musst nur noch die Parameter / Variablen füllen / definieren.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 14:14:49 GMT</pubDate>
      <guid>https://community.viessmann.de/t5/Getting-started-programming-with/Invalid-redirection-URL/m-p/275120#M301</guid>
      <dc:creator>CustomerCareMichael</dc:creator>
      <dc:date>2022-11-07T14:14:49Z</dc:date>
    </item>
  </channel>
</rss>

