<?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 "refreshtoken - w/o access token - security" in Getting started programming with the Viessmann API</title>
    <link>https://community.viessmann.de/t5/Getting-started-programming-with/refreshtoken-w-o-access-token-security/m-p/186887#M68</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just tried to get started with the API.&lt;/P&gt;&lt;P&gt;I still hang at the auth process and don't understand why I can do this:&lt;/P&gt;&lt;P&gt;curl -X POST "&lt;A href="https://iam.viessmann.com/idp/v2/token" target="_blank"&gt;https://iam.viessmann.com/idp/v2/token&lt;/A&gt;" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=refresh_token&amp;amp;client_id=&amp;lt;client_id&amp;gt;&amp;amp;refresh_token=&amp;lt;refresh_token&amp;gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When looking up the API of my wallbox: &lt;A href="https://api.easee.cloud/index.html" target="_blank"&gt;https://api.easee.cloud/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have to provide the access token AND the refresh token to get a new token and I have to make an authenticated call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For viessmann, I just need the client id and the former refresh token to get a new access token.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suggest to improve this and make it more secure, by ALWAYS require the access token AND the Bearer authentication when doing a refresh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is much harder to hack, than this simple way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Sat, 18 Sep 2021 16:19:44 GMT</pubDate>
    <dc:creator>ul0815</dc:creator>
    <dc:date>2021-09-18T16:19:44Z</dc:date>
    <item>
      <title>refreshtoken - w/o access token - security</title>
      <link>https://community.viessmann.de/t5/Getting-started-programming-with/refreshtoken-w-o-access-token-security/m-p/186887#M68</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just tried to get started with the API.&lt;/P&gt;&lt;P&gt;I still hang at the auth process and don't understand why I can do this:&lt;/P&gt;&lt;P&gt;curl -X POST "&lt;A href="https://iam.viessmann.com/idp/v2/token" target="_blank"&gt;https://iam.viessmann.com/idp/v2/token&lt;/A&gt;" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=refresh_token&amp;amp;client_id=&amp;lt;client_id&amp;gt;&amp;amp;refresh_token=&amp;lt;refresh_token&amp;gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When looking up the API of my wallbox: &lt;A href="https://api.easee.cloud/index.html" target="_blank"&gt;https://api.easee.cloud/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have to provide the access token AND the refresh token to get a new token and I have to make an authenticated call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For viessmann, I just need the client id and the former refresh token to get a new access token.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suggest to improve this and make it more secure, by ALWAYS require the access token AND the Bearer authentication when doing a refresh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is much harder to hack, than this simple way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sat, 18 Sep 2021 16:19:44 GMT</pubDate>
      <guid>https://community.viessmann.de/t5/Getting-started-programming-with/refreshtoken-w-o-access-token-security/m-p/186887#M68</guid>
      <dc:creator>ul0815</dc:creator>
      <dc:date>2021-09-18T16:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: refreshtoken - w/o access token - security</title>
      <link>https://community.viessmann.de/t5/Getting-started-programming-with/refreshtoken-w-o-access-token-security/m-p/187857#M71</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.viessmann.de/t5/user/viewprofilepage/user-id/40588"&gt;@ul0815&lt;/a&gt; ,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thank you for your feedback!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Our authentication process is&amp;nbsp;compliant to the OAuth 2.0 authorization framework as well as OpenID Connect (Core) specification.&amp;nbsp;Both define the refresh_token request in a consistent way where the among other parameters only the refresh_token needs to be included in the request. The access_token is not required, see:&lt;BR /&gt;
&lt;A href="https://openid.net/specs/openid-connect-core-1_0.html#RefreshingAccessToken" target="_blank"&gt;https://openid.net/specs/openid-connect-core-1_0.html#RefreshingAccessToken&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://datatracker.ietf.org/doc/html/rfc6749#section-6" target="_blank"&gt;https://datatracker.ietf.org/doc/html/rfc6749#section-6&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 11:28:12 GMT</pubDate>
      <guid>https://community.viessmann.de/t5/Getting-started-programming-with/refreshtoken-w-o-access-token-security/m-p/187857#M71</guid>
      <dc:creator>CustomerCareMichael</dc:creator>
      <dc:date>2021-09-27T11:28:12Z</dc:date>
    </item>
  </channel>
</rss>

