Unverified Commit 5c631190 authored by Jonas Heinrich's avatar Jonas Heinrich Committed by GitHub
Browse files

nextcloudPackages: add oidc_login (#391306)

parents 5c810895 c86a9eab
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -249,6 +249,16 @@
      "agpl"
    ]
  },
  "oidc_login": {
    "hash": "sha256-RLYquOE83xquzv+s38bahOixQ+y4UI6OxP9HfO26faI=",
    "url": "https://github.com/pulsejet/nextcloud-oidc-login/releases/download/v3.2.2/oidc_login.tar.gz",
    "version": "3.2.2",
    "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",
    "homepage": "https://github.com/pulsejet/nextcloud-single-openid-connect",
    "licenses": [
      "agpl"
    ]
  },
  "onlyoffice": {
    "hash": "sha256-Bh0CGw0qdJI+NzJ/dmzoqSZdVYzcFbqSJa70gvZhDGs=",
    "url": "https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v9.7.0/onlyoffice.tar.gz",
+10 −0
Original line number Diff line number Diff line
@@ -249,6 +249,16 @@
      "agpl"
    ]
  },
  "oidc_login": {
    "hash": "sha256-RLYquOE83xquzv+s38bahOixQ+y4UI6OxP9HfO26faI=",
    "url": "https://github.com/pulsejet/nextcloud-oidc-login/releases/download/v3.2.2/oidc_login.tar.gz",
    "version": "3.2.2",
    "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",
    "homepage": "https://github.com/pulsejet/nextcloud-single-openid-connect",
    "licenses": [
      "agpl"
    ]
  },
  "onlyoffice": {
    "hash": "sha256-Bh0CGw0qdJI+NzJ/dmzoqSZdVYzcFbqSJa70gvZhDGs=",
    "url": "https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v9.7.0/onlyoffice.tar.gz",
+10 −0
Original line number Diff line number Diff line
@@ -239,6 +239,16 @@
      "agpl"
    ]
  },
  "oidc_login": {
    "hash": "sha256-RLYquOE83xquzv+s38bahOixQ+y4UI6OxP9HfO26faI=",
    "url": "https://github.com/pulsejet/nextcloud-oidc-login/releases/download/v3.2.2/oidc_login.tar.gz",
    "version": "3.2.2",
    "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",
    "homepage": "https://github.com/pulsejet/nextcloud-single-openid-connect",
    "licenses": [
      "agpl"
    ]
  },
  "onlyoffice": {
    "hash": "sha256-Bh0CGw0qdJI+NzJ/dmzoqSZdVYzcFbqSJa70gvZhDGs=",
    "url": "https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v9.7.0/onlyoffice.tar.gz",
+22 −8
Original line number Diff line number Diff line
= Adding apps =
## Updating apps

To regenerate the nixpkgs nextcloudPackages set, run:

```
./generate.sh
```

After that you can commit and submit the changes in a pull request.

## Adding apps

**Before adding an app and making a pull request to nixpkgs, please first update as described above in a separate commit.**

To extend the nextcloudPackages set, add a new line to the corresponding json
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,
for example `breezedark` for the app with the url
`https://apps.nextcloud.com/apps/breezedark`.

To regenerate the nixpkgs nextcloudPackages set, run:
Then regenerate the nixpkgs nextcloudPackages set by running:

```
./generate.sh
```

After that you can commit and submit the changes.
**Make sure that in this update, only the app added to `nextcloud-apps.json` gets updated.**

After that you can commit and submit the changes in a pull request.

= Usage with the Nextcloud module =
## Usage with the Nextcloud module

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

```nix
```
{
  services.nextcloud = {
    enable = true;
    package = pkgs.nextcloud25;
    package = pkgs.nextcloud31;
    hostName = "localhost";
    config.adminpassFile = "${pkgs.writeText "adminpass" "hunter2"}";
    extraApps = with pkgs.nextcloud25Packages.apps; {
    extraApps = with pkgs.nextcloud31Packages.apps; {
      inherit mail calendar contact;
    };
    extraAppsEnable = true;
+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@
, "music": "agpl3Plus"
, "news": "agpl3Plus"
, "notes": "agpl3Plus"
, "oidc_login": "agpl3Only"
, "onlyoffice": "asl20"
, "phonetrack": "agpl3Plus"
, "polls": "agpl3Plus"