Skip to content

Commit 58aa95a

Browse files
merge sections about /.well-known/openid-configuration redirect
1 parent cdb42de commit 58aa95a

1 file changed

Lines changed: 7 additions & 14 deletions

File tree

INSTALL.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,18 @@ After installing and enabling the appin your Nextcloud instance, take the JSON f
55

66
`https://cloud.pondersource.org/index.php/apps/solid/openid` (depending on your hostname and whether you have the `index.php/` part in there)
77

8-
and put that into e.g. `/var/www/html/.well-known/openid-configuration` (depending on your webroot being e.g. `/var/www/html`)
9-
Or you should
10-
[edit your .htaccess file](https://github.com/solid/test-suite/blob/665824af763ddd5dd7242cbc8b18faad4ac304e3/servers/nextcloud-server/init.sh#L5)
11-
and then test whether https://your-nextcloud-server.com/.well-known/openid-configuration redirects to https://your-nextcloud-server.com/apps/solid/openid.
12-
13-
Check that it works: `https://cloud.pondersource.org/.well-known/openid-configuration`
14-
Then, take the CORS instructions from site.conf and add them to your own webserver configuration.
15-
In particular, add this section to your apache site.conf:
16-
```
17-
<Directory /var/www/html/.well-known/>
18-
Header always set Access-Control-Allow-Origin: *
19-
</Directory>
20-
```
21-
Then restart Apache.
8+
and put that into e.g. `/var/www/html/.well-known/openid-configuration` (depending on your webroot being e.g. `/var/www/html`).
229

2310
In earlier versions of this app (e.g. the one in the Dockerfile we use for running the Solid test suite) we
2411
used a redirect from /.well-known/openid-configuration to /index.php/apps/solid/openid but it's difficult
2512
to add CORS headers to a redirect, so that's why just copying the file into a folder like that is preferable.
2613

14+
If you do want to try doing it with the redirect, you should
15+
[edit your .htaccess file](https://github.com/solid-contrib/test-suite/blob/665824af763ddd5dd7242cbc8b18faad4ac304e3/servers/nextcloud-server/init.sh#L5)
16+
and then test whether https://your-nextcloud-server.com/.well-known/openid-configuration redirects to https://your-nextcloud-server.com/apps/solid/openid.
17+
18+
Check that it works: `https://cloud.pondersource.org/.well-known/openid-configuration`
19+
2720
## If your Nextcloud was installed using Snap
2821

2922
Steps you probably already took:

0 commit comments

Comments
 (0)