Repository navigation
website/integrations: add opencloud integration - #22497
Conversation
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #22497 +/- ##
==========================================
- Coverage 93.30% 93.27% -0.04%
==========================================
Files 1033 1033
Lines 60150 60182 +32
Branches 400 400
==========================================
+ Hits 56123 56132 +9
- Misses 4027 4050 +23
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
d1acf2d to
691ecbd
Compare
|
So @dewi-tik I ended up reworking this guide a bit. Some people in the ticket clearly wanted the ability to use all of the different clients (desktop. mobile, web) at the same time, which requires setting up a small proxy for a single endpoint in front of authentik. I'm not sure if you'd consider that extending past the point of what we should do for an integration guide. If it is, I wouldn't mind posting a summary of the steps directly on the ticket and leaving this guide to only cover the standard "web" steps, which don't require a reverse proxy. Let me know what you think |
I like it. Ultimately the point is to help users. So I don't think that we should limit sharing information just because it's maybe imperfect or doesn't cover every use case. Plus I like caddy. Will give this a more thorough review and get it approved ASAP |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-159bd324910bd07c989dc45fcd513ef14ec5370d
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-159bd324910bd07c989dc45fcd513ef14ec5370dAfterwards, run the upgrade commands from the latest release notes. |
|
|
||
| ## OpenCloud configuration | ||
|
|
||
| In the `opencloud-compose` project, enable the external IdP overlay in `COMPOSE_FILE`. This replaces OpenCloud's built-in IdP, so login goes through authentik only. |
There was a problem hiding this comment.
and that's by doing what's in L58. seems unclear
|
|
||
| ## Configuration verification | ||
|
|
||
| Open `https://opencloud.company` in a new browser window. You are redirected to authentik to log in, and after authenticating you are returned to OpenCloud. |
There was a problem hiding this comment.
just say open opencloud no need to add domain, especially if it's a placeholder
There was a problem hiding this comment.
I'd prefer to leave it I think it's fine either direction but this is a bit more direct
| - **Client type**: `Public` | ||
| - **Client ID**: the client's value from the table below. | ||
| - **Redirect URIs**: the client's value from the table below. | ||
| - **Signing Key**: select the **same** key for all four providers (the shared issuer exposes a single `jwks_uri`, so all clients' tokens must be signed by one key). |
There was a problem hiding this comment.
no need to justify and mabye just say Select the same available signing key for all platforms
There was a problem hiding this comment.
Sorry, I don't understand why we wouldn't, we are setting up a proxy to share one provider's well-known in a location to represent all 4 of these providers, it's important to note. It's the whole reason I had to make this guide in the first place
There was a problem hiding this comment.
We don't usually give extra information in these steps. But in this case it's an unusual guide because it requires multiple providers. I'm fine with the justification.
|
|
||
| ## 3. OpenCloud configuration | ||
|
|
||
| In the `opencloud-compose` project, enable the external IdP overlay in `COMPOSE_FILE`. This replaces OpenCloud's built-in IdP, so login goes through authentik only. |
There was a problem hiding this comment.
ehhhh we repeat word for work what's in the web only section. we should restructure this doc as to not repeat ourselves
There was a problem hiding this comment.
There isn't really a good way to organize this to make that happen. The .env file for the web setup requires an application slug, the other .env file doesn't and has different urls.
The only thing that would kind of work is telling people to universally start with the authentik yml, then telling people to do some of opencloud, then go back to authentik, then go back to the .env for the web version, and I hate it when we do that in guides
…d/index.mdx Co-authored-by: Dewi Roberts <[email protected]> Signed-off-by: Connor Peshek <[email protected]>
…d/index.mdx Co-authored-by: Dewi Roberts <[email protected]> Signed-off-by: Connor Peshek <[email protected]>
…d/index.mdx Co-authored-by: Dewi Roberts <[email protected]> Signed-off-by: Connor Peshek <[email protected]>
…d/index.mdx Co-authored-by: Dewi Roberts <[email protected]> Signed-off-by: Connor Peshek <[email protected]>
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…d/index.mdx Co-authored-by: Dominic R <[email protected]> Signed-off-by: Connor Peshek <[email protected]>
|
To @dominic-r 's point, the callout of Global issuer throughout feels a little weird, but we have zero documentation on the global and per-application issuer options for oauth providers. So there is no existing documentation to refer to or link to in order to better explain it, and this integration guide gets stuck doing a little bit of the heavy lifting of explaining what the global issuer option is. We should update the documentation to highlight this feature, but let me know what we want to do about this @dewi-tik and what you think However, I think the document is ready for next rounds of review. All other feedback is handled |
|
Going to pr docs on the issuer and ask about the well known endpoint before continuing with this integration guide |
Co-authored-by: Dewi Roberts <[email protected]> Signed-off-by: Connor Peshek <[email protected]>
|
|
||
| Choose your setup below. The **Web only** tab logs in through the browser. The **Web, desktop & mobile** tab also enables the native sync clients, which each use a distinct client ID and require some extra issuer configuration. | ||
|
|
||
| import TabItem from "@theme/TabItem"; |
There was a problem hiding this comment.
lets move imports to top of file
| WEBFINGER_WEB_OIDC_CLIENT_SCOPES=openid profile email | ||
| ``` | ||
|
|
||
| :::info |
There was a problem hiding this comment.
no need to put this. its our doc and it should be considered authoritive, so no need to justify the values
There was a problem hiding this comment.
removed that for ya
| GRAPH_ASSIGN_DEFAULT_USER_ROLE: "true" | ||
| ``` | ||
|
|
||
| Then reboot your docker containers. |
Signed-off-by: Connor Peshek <[email protected]>
Details
An integration guide for opencloud
Closes #18839
Checklist
ak test authentik/)make lint-fix)If an API change has been made
make gen)If changes to the frontend have been made
make web)If applicable
make docs)