Home
last modified time | relevance | path

Searched hist:"38221509 e6cc06a6897e8b9b2aa049a70c033840" (Results 1 – 1 of 1) sorted by relevance

/openbmc/bmcweb/include/
H A Dauthentication.hppdiff 8f5df132a70b47c2f299cb216812ec83d4fc1197 Fri Jun 14 04:13:16 CDT 2024 VinceChang6637 <vince_chang@aspeedtech.com> Fix login webui fail

WebUI cannot login cause by 38221509e6cc06a6897e8b9b2aa049a70c033840.

The root URL ("/") represents the top-level directory of a website.
Removing the trailing slash from the root URL could lead to incorrect
representations.
Therefore, add to check that the URL is not the root before removing the
trailing slash.

Fixes #279

Tested: Use Chrome to access
https://${BMC_IP}.

Success login WebUI.

Change-Id: I19527ee785f550ba5aeafe6e94e8521ab508817c
Signed-off-by: VinceChang6637 <vince_chang@aspeedtech.com>
diff 38221509e6cc06a6897e8b9b2aa049a70c033840 Mon Jun 03 14:19:38 CDT 2024 Ed Tanous <ed@tanous.net> Fix regression in metadata

Metadata payloads are no longer accessible without authentication due to
a regression caused by 090ab8e1042e14f7e5e02572ae2a2102677f1f00.

Add /redfish/v1/$metadata to the allow list, and use this as an
opportunity to refactor the isOnAllowList() code and simplify it.

Fixes #277

Tested: Redfish protocol validator $metadata tests now pass again.

```
curl -vvvv -k https://192.168.7.2/redfish/v1/\$metadata
```

Now succeeds.

Change-Id: I0cc3492f6184b2cad3281b22535d5089709c16a4
Signed-off-by: Ed Tanous <etanous@nvidia.com>