Skip to content

Commit 5c63119

Browse files
authored
nextcloudPackages: add oidc_login (#391306)
2 parents 5c81089 + c86a9ea commit 5c63119

File tree

5 files changed

+53
-8
lines changed

5 files changed

+53
-8
lines changed

pkgs/servers/nextcloud/packages/29.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,16 @@
249249
"agpl"
250250
]
251251
},
252+
"oidc_login": {
253+
"hash": "sha256-RLYquOE83xquzv+s38bahOixQ+y4UI6OxP9HfO26faI=",
254+
"url": "https://github.com/pulsejet/nextcloud-oidc-login/releases/download/v3.2.2/oidc_login.tar.gz",
255+
"version": "3.2.2",
256+
"description": "# OpenID Connect Login\n\nProvides user creation and login via one single OpenID Connect provider. Even though this is a fork of [nextcloud-social-login](https://github.com/zorn-v/nextcloud-social-login), it fundamentally differs in two ways - aims for simplistic, single provider login (and hence is very minimalistic), and it supports having LDAP as the primary user backend. This way, you can use OpenID Connect to login to Nextcloud while maintaining an LDAP backend with attributes with the LDAP plugin.\n\n### Features\n\n- Automatic [Identity provider endpoints discovery](https://openid.net/specs/openid-connect-discovery-1_0.html)\n- User creation at first login\n- User profile update at login (name, email, avatar, groups etc.)\n- Group creation\n- Automatic redirection from the nextcloud login page to the Identity Provider login page\n- WebDAV endpoints `Bearer` and `Basic` authentication",
257+
"homepage": "https://github.com/pulsejet/nextcloud-single-openid-connect",
258+
"licenses": [
259+
"agpl"
260+
]
261+
},
252262
"onlyoffice": {
253263
"hash": "sha256-Bh0CGw0qdJI+NzJ/dmzoqSZdVYzcFbqSJa70gvZhDGs=",
254264
"url": "https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v9.7.0/onlyoffice.tar.gz",

pkgs/servers/nextcloud/packages/30.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,16 @@
249249
"agpl"
250250
]
251251
},
252+
"oidc_login": {
253+
"hash": "sha256-RLYquOE83xquzv+s38bahOixQ+y4UI6OxP9HfO26faI=",
254+
"url": "https://github.com/pulsejet/nextcloud-oidc-login/releases/download/v3.2.2/oidc_login.tar.gz",
255+
"version": "3.2.2",
256+
"description": "# OpenID Connect Login\n\nProvides user creation and login via one single OpenID Connect provider. Even though this is a fork of [nextcloud-social-login](https://github.com/zorn-v/nextcloud-social-login), it fundamentally differs in two ways - aims for simplistic, single provider login (and hence is very minimalistic), and it supports having LDAP as the primary user backend. This way, you can use OpenID Connect to login to Nextcloud while maintaining an LDAP backend with attributes with the LDAP plugin.\n\n### Features\n\n- Automatic [Identity provider endpoints discovery](https://openid.net/specs/openid-connect-discovery-1_0.html)\n- User creation at first login\n- User profile update at login (name, email, avatar, groups etc.)\n- Group creation\n- Automatic redirection from the nextcloud login page to the Identity Provider login page\n- WebDAV endpoints `Bearer` and `Basic` authentication",
257+
"homepage": "https://github.com/pulsejet/nextcloud-single-openid-connect",
258+
"licenses": [
259+
"agpl"
260+
]
261+
},
252262
"onlyoffice": {
253263
"hash": "sha256-Bh0CGw0qdJI+NzJ/dmzoqSZdVYzcFbqSJa70gvZhDGs=",
254264
"url": "https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v9.7.0/onlyoffice.tar.gz",

pkgs/servers/nextcloud/packages/31.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,16 @@
239239
"agpl"
240240
]
241241
},
242+
"oidc_login": {
243+
"hash": "sha256-RLYquOE83xquzv+s38bahOixQ+y4UI6OxP9HfO26faI=",
244+
"url": "https://github.com/pulsejet/nextcloud-oidc-login/releases/download/v3.2.2/oidc_login.tar.gz",
245+
"version": "3.2.2",
246+
"description": "# OpenID Connect Login\n\nProvides user creation and login via one single OpenID Connect provider. Even though this is a fork of [nextcloud-social-login](https://github.com/zorn-v/nextcloud-social-login), it fundamentally differs in two ways - aims for simplistic, single provider login (and hence is very minimalistic), and it supports having LDAP as the primary user backend. This way, you can use OpenID Connect to login to Nextcloud while maintaining an LDAP backend with attributes with the LDAP plugin.\n\n### Features\n\n- Automatic [Identity provider endpoints discovery](https://openid.net/specs/openid-connect-discovery-1_0.html)\n- User creation at first login\n- User profile update at login (name, email, avatar, groups etc.)\n- Group creation\n- Automatic redirection from the nextcloud login page to the Identity Provider login page\n- WebDAV endpoints `Bearer` and `Basic` authentication",
247+
"homepage": "https://github.com/pulsejet/nextcloud-single-openid-connect",
248+
"licenses": [
249+
"agpl"
250+
]
251+
},
242252
"onlyoffice": {
243253
"hash": "sha256-Bh0CGw0qdJI+NzJ/dmzoqSZdVYzcFbqSJa70gvZhDGs=",
244254
"url": "https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v9.7.0/onlyoffice.tar.gz",

pkgs/servers/nextcloud/packages/README.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
= Adding apps =
1+
## Updating apps
2+
3+
To regenerate the nixpkgs nextcloudPackages set, run:
4+
5+
```
6+
./generate.sh
7+
```
8+
9+
After that you can commit and submit the changes in a pull request.
10+
11+
## Adding apps
12+
13+
**Before adding an app and making a pull request to nixpkgs, please first update as described above in a separate commit.**
214

315
To extend the nextcloudPackages set, add a new line to the corresponding json
416
file with the id of the app:
@@ -11,27 +23,29 @@ https://apps.nextcloud.com. The id corresponds to the last part in the app url,
1123
for example `breezedark` for the app with the url
1224
`https://apps.nextcloud.com/apps/breezedark`.
1325

14-
To regenerate the nixpkgs nextcloudPackages set, run:
26+
Then regenerate the nixpkgs nextcloudPackages set by running:
1527

1628
```
1729
./generate.sh
1830
```
1931

20-
After that you can commit and submit the changes.
32+
**Make sure that in this update, only the app added to `nextcloud-apps.json` gets updated.**
33+
34+
After that you can commit and submit the changes in a pull request.
2135

22-
= Usage with the Nextcloud module =
36+
## Usage with the Nextcloud module
2337

24-
The apps will be available in the namespace `nextcloud25Packages.apps`.
38+
The apps will be available in the namespace `nextcloud31Packages.apps` (and for older versions of Nextcloud similarly).
2539
Using it together with the Nextcloud module could look like this:
2640

27-
```nix
41+
```
2842
{
2943
services.nextcloud = {
3044
enable = true;
31-
package = pkgs.nextcloud25;
45+
package = pkgs.nextcloud31;
3246
hostName = "localhost";
3347
config.adminpassFile = "${pkgs.writeText "adminpass" "hunter2"}";
34-
extraApps = with pkgs.nextcloud25Packages.apps; {
48+
extraApps = with pkgs.nextcloud31Packages.apps; {
3549
inherit mail calendar contact;
3650
};
3751
extraAppsEnable = true;

pkgs/servers/nextcloud/packages/nextcloud-apps.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
, "music": "agpl3Plus"
2727
, "news": "agpl3Plus"
2828
, "notes": "agpl3Plus"
29+
, "oidc_login": "agpl3Only"
2930
, "onlyoffice": "asl20"
3031
, "phonetrack": "agpl3Plus"
3132
, "polls": "agpl3Plus"

0 commit comments

Comments
 (0)