Hallo, ich versuche meinen refresh token zu bekommen doch leider sieht meine Antwort nicht so aus : (https://documentation.viessmann.com/static/authentication) HTTP/1.1 200 OK
Content-Type: application/json
{
"access_token": "eyJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiUlNBLU9BRVAtMjU...",
"refresh_token": "083ed7fe41a619242df5978190fd11b5",
"token_type": "Bearer",
"expires_in": 3600
} sondern es kommt sowas dabei raus: <!DOCTYPE html> <html> <head> <title>Viessmann Login</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="icon" href="/login/resources/nevislogrend/applications/IDM_OIDC_IDP_V2/webdata/images/favicon.png" type="image/png"> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"/> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"/> <link rel="stylesheet" href="/login/resources/nevislogrend/applications/IDM_OIDC_IDP_V2/webdata/css/material.min.css"/> <link rel="stylesheet" href="/login/resources/nevislogrend/applications/IDM_OIDC_IDP_V2/webdata/css/customerRegistration.css"/> <script src="/login/resources/nevislogrend/applications/IDM_OIDC_IDP_V2/webdata/js/material.min.js"></script> <script src="/login/resources/nevislogrend/applications/IDM_OIDC_IDP_V2/webdata/js/showpw.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="https://www.recaptcha.net/recaptcha/api.js" async defer></script> <script> function onSubmit() { document.getElementById("AuthUidDialogCaptcha").submit(); } </script> </head> <body> <div class="b2b-main-background"> <div class="font-size-20px b2b-regestration-headline"> <div class="mdl-grid mdl-grid--no-spacing"> <div class="b2b-regestration-headline-item" style="margin-left:24px">Login</div> </div> </div> <div class="b2b-main-container"> <div class="b2b-sub-container"> <div class="mdl-grid mdl-grid--no-spacing"> <div class="mdl-layout-spacer"></div> <img src="/login/resources/nevislogrend/applications/IDM_OIDC_IDP_V2/webdata/images/viessmann-logo.png" alt="viessmann-logo" class="b2b-vi-image"/> <div class="mdl-layout-spacer"></div> </div> <form class="b2b-form-space" id="AuthUidDialogCaptcha" name="AuthUidDialogCaptcha" method="POST" target="_self" action="https://iam.viessmann.com/idp/v2/authorize?client_id=88438a5ab704a008f683dfe3d041bea7&redirect_uri=http://localhost:4200/&response_type=code&code_challenge=2q1EoFVChuEfZdUqHRQ5iSL8KPEULBKgYNTgwXHHHUo&scope=IoT%20User%20offline_access" autocomplete="off" accept-charset="UTF-8"> <noscript> <div class="mdl-grid mdl-grid--no-spacing"> <div class="mdl-layout-spacer"></div> <div class="error-color normal-text font-size-26px opacity-87 b2b-form-space b2b-line-height"><p>Javascript in your browser is disabled. This page requires javascript to work properly.<br>Please enable javascript in order to use this page.</p></div> <div class="mdl-layout-spacer"></div> </div> </noscript> Der Curl comand ist wie in dem Beispiel, ich ersetze nur die my_oauth_cliend_id und die code_challenge mit meinen Werten. curl -X POST "https://iam.viessmann.com/idp/v2/authorize?
client_id=my_oauth_client_id
&redirect_uri=http://localhost:4200/
&response_type=code
&code_challenge=2e21faa1-db2c-4d0b-a10f-575fd372bc8c-575fd372bc8c
&scope=IoT%20User%20offline_access" Was mach ich falsch
... Mehr anzeigen