Can't Access API When Mayan EDMS Requires Login Using OIDC


I’d like to ask. When Mayan EDMS requires login using username and password, i can upload documents via API using basic auth

However, when Mayan EDMS requires login using OIDC, basic auth can no longer be used. I’ve tried using Oauth2.0 and Bearer Token obtained from the OIDC provider, but i still can’t upload documents via the API. The response was:

“detail”: “Not found.”

Is there something I’ve missed?