mediacms-io / mediacms

MediaCMS is a modern, fully featured open source video and media CMS, written in Python/Django and React, featuring a REST API.
https://mediacms.io
GNU Affero General Public License v3.0
2.52k stars 458 forks source link

403 forbidden: /api - Invalid username/password #979

Closed douma closed 4 months ago

douma commented 4 months ago

I get an 403 error when accessing: api/v1/media?show=recommended: In other words no content is showing up when not logged in.

Response:

Media List

GET /api/v1/media
HTTP 403 Forbidden
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "detail": "Invalid username/password."
}

When I login as admin the content shows up. I used a system install. and set the following flags:

GLOBAL_LOGIN_REQUIRED = False
PORTAL_WORKFLOW = "public"

I expect the contents to be visible for public users. I use Ubuntu:

Distributor ID: Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:    22.04
Codename:   jammy
douma commented 4 months ago

Nevermind, the problem is not with your software, but instead i tried to protect the installation with basic auth and so I changed some files within nginx, this resulted in the error. Sorry.