From a77972d8484fe01a2e5097e7472a0f8ba7518653 Mon Sep 17 00:00:00 2001 From: notplants Date: Thu, 8 Jan 2026 21:03:00 +0000 Subject: [PATCH] Update README.md --- README.md | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 51 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 15a9167..d9c803a 100644 --- a/README.md +++ b/README.md @@ -17,15 +17,62 @@ ## Quick start -* Deploy Single Sign On (see [Authentication](#authentication) below) * `abra app new lasuite-docs --secrets` * `abra app config ` * `abra app deploy ` * `abra app cmd backend migrate` * `abra app restart minio-bootstrap` (Note: this will appear to fail, but probably worked! Check `abra app logs minio-bootstrap`) -For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech). +You should then be able to visit the landing page of your app, but not yet to login. To login, you need to deploy and integrate single sign on (described below in the "Configure Authentication" section). + + +## Configure Authentication + +lasuite-docs **requires** an OpenID Connect (OIDC) single sign-on provider; deployment has been tested with [Keycloak](https://git.coopcloud.tech/coop-cloud/keycloak), which we recommend, or you could also try [Authentik](https://git.coopcloud.tech/coop-cloud/authentik), both of which are installable using Co-op Cloud. + +Instructions for integrating keycloak with drive after deploying it, are below. + +* In keycloak, create a realm (save the name of this realm, you will need it later) +* Within that realm, create a client + * during client creation, ensure: + - Standard flow: True + - Direct access grants: True + - Authorization: True + - Client authentication: True + - PKCE method: none +* Within the client tab, for your client, click on "Credentials". Click on the the copy button to copy "Client Secret" so you can insert this into your coop cloud deployment in the next step. +* `abra app secret insert oidc_rp_client_secret v1 ` +* Now create a user for this client within keycloak. Within the Users tab, click "Add User". Any username and password works. Save this info. + +You then additionally need to modify the config of docs to point to your keycloak deployment. + +* `abra app config ` +set `OIDC_REALM` to the realm you configured in keycloak +set `AUTH_DOMAIN` to the domain of your keycloak instance + +then redeploy docs: +`abra app deploy --force` + +at this point, when you go to your docs url, you shoud then be able to click "login" and login with the username and password for the user you created in keycloak. + +you can make additional users in keycloak for this "client" and they will all be able to login to docs and collaborate. + +## Configure E-Mail + +Using `abra app config ` you need to set the following for your smtp server: + +``` +DJANGO_EMAIL_HOST="yourmailserver.com" +DJANGO_EMAIL_PORT=1025 +DJANGO_EMAIL_FROM=noreply@example.com +``` + +You then need to insert the password for your smtp server as a secret: + +`abra app secret insert email_pass v1 ` + +Then redeploy the app, and automated e-mail sending should work (for example for inviting someone to collaborate on a document): + +`abra app deploy --force` -## Authentication -Docs **requires** an OpenID Connect (OIDC) single sign-on provider; we recommend [Authentik](https://git.coopcloud.tech/coop-cloud/authentik) or [Keycloak](https://git.coopcloud.tech/coop-cloud/keycloak), both of which are installable using Co-op Cloud.