[
https://issues.redhat.com/browse/WFLY-14009?page=com.atlassian.jira.plugi...
]
Michal Petrov commented on WFLY-14009:
--------------------------------------
I don't know if it's a good setup to have the Management API behind
"bearer-only" if you want to download files from it. That said it looks like we
can pass the bearer token in the query string but I need to check how the requests are
constructed in HAL.
Download log file from Widfly Console forbidden with Keycloak setup
-------------------------------------------------------------------
Key: WFLY-14009
URL:
https://issues.redhat.com/browse/WFLY-14009
Project: WildFly
Issue Type: Bug
Components: Management, Web Console
Affects Versions: 17.0.1.Final
Reporter: Claudio Weiler
Assignee: Harald Pehl
Priority: Major
We have a WildFly instance setup with KeyCloak protecting console/management interface.
In menu 'Runtime > Log files' there is 2 places to download those. In context
menu of the log entry or in toolbar of log entry viewer.
Both options can't download log file because no bearer token is send in request.
Download request is a simple link html tag like this one:
{code:java}
<a data-element="download"
href="https://server.none.com/management/subsystem/logging/log-file/...
class="btn btn-default clickable" data-toggle="tooltip"
data-container="body" data-placement="top"
data-animation="false" title=""
data-original-title="Download" download="server.log"><i
class="fa fa-download"></i></a>{code}
Keycloak steps:
https://docs.jboss.org/author/display/WFLY/Protecting%20Wildfly%20Adminst...
--
This message was sent by Atlassian Jira
(v7.13.8#713008)