[homeconnect] Fix login for simulator environment (#13653)
* Add redirect URI to oAuth request Signed-off-by: Jonas Brüstel <jonas@bruestel.net>
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
feather.replace();
|
||||
|
||||
$(".redirectUri").text(window.location.href.substring(0, window.location.href.lastIndexOf('/homeconnect') + 12));
|
||||
$(".redirectUriInput").val(window.location.href.substring(0, window.location.href.lastIndexOf('/homeconnect') + 12));
|
||||
|
||||
$('#apiDetailModal').on('show.bs.modal', function (event) {
|
||||
var button = $(event.relatedTarget);
|
||||
|
||||
@@ -71,12 +71,13 @@
|
||||
<dd class="col-sm-8">
|
||||
<form method="post" style="display: inline-block">
|
||||
<input type="hidden" name="bridgeId" th:value="${uid}"/>
|
||||
<input type="hidden" name="action" value="clearCredentials">
|
||||
<input type="hidden" name="action" value="clearCredentials" />
|
||||
<button type="submit" class="btn btn-secondary btn-sm">Clear stored credentials</button>
|
||||
</form>
|
||||
<form method="post" style="display: inline-block">
|
||||
<input type="hidden" name="bridgeId" th:value="${uid}"/>
|
||||
<input type="hidden" name="action" value="authorize">
|
||||
<input type="hidden" name="bridgeId" th:value="${uid}" />
|
||||
<input type="hidden" name="action" value="authorize" />
|
||||
<input type="hidden" name="redirectUri" value="" class="redirectUriInput" />
|
||||
<button type="submit" class="btn btn-primary btn-sm">Authorize bridge</button>
|
||||
</form>
|
||||
</dd>
|
||||
|
||||
Reference in New Issue
Block a user