owncloud / owncloud/ocis

Cannot Login using public URL

Open
#7,129 2 comments 0 reactions 0 assignees View on GitHub
Status:Needs-Info Type:Bug
Dominant language
Go
Stars
2.1k
Forks
274
Avg merge
2d 1h
Merged PRs (30d)
103

Description

## Describe the bug

I walked through the setup steps in this manual here: https://doc.owncloud.com/ocis/next/deployment/container/container-setup.html.

When I attempt to login using a public URL it gives me access denied

`Not logged in
This could be because of a routine safety log out, or because your account is either inactive or not yet authorized for use. Please try logging in after a while or seek help from your Administrator.`

With the following error from the docker container;

`{"level":"error","service":"proxy","error":"failed to verify access token: 404 Not Found: {\"message\":\"openid-configuration not supported\"}","authenticator":"oidc","path":"/ocs/v1.php/cloud/user","time":"2023-08-27T16:37:49.364411854Z","message":"failed to authenticate the request"}`

The docker command looks like this:

`docker run --name ocis_runtime --rm -it -p 9200:9200 --mount type=bind,source=$PWD/ocis/ocis-config,target=/etc/ocis --mount type=bind,source=$PWD/ocis/ocis-data,target=/var/lib/ocis -e OCIS_INSECURE=true -e PROXY_HTTP_ADDR=0.0.0.0:9200 -e OCIS_URL=https://cloud.gravitywall.net owncloud/ocis`

If I change the OCIS_URL to the private IP of the machine, then it logs in fine.

I'm using a Cloudflare tunnel to access the OCIS server. My Cloudflare config looks like this:

` - hostname: cloud.gravitywall.net
service: https://192.168.40.68:9200
originRequest:
noTLSVerify: true`

And is running on a different machine.

Did I miss a step somewhere on configuring OCIS to work with a public URL?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.