@pedro-cf raised an issue on the stac-fastapi-elasticsearch-opensearch https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/issues/310 that you can't use multiple security route dependency. Use case for this would be if someone want to use multiple OAuth flows at the same time. This is a known issue with FastAPI the suggested solution is to use another dependency to "merge" the different dependencies.