mirror of https://github.com/authelia/authelia.git
4.2 KiB
4.2 KiB
title | description | summary | date | draft | images | weight | toc | support | seo | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ownCloud Infinite Scale | Integrating ownCloud Infinite Scale with the Authelia OpenID Connect 1.0 Provider. | 2024-03-05T21:58:32+11:00 | false | 620 | true |
|
|
Tested Versions
{{% oidc-common %}}
Assumptions
This example makes the following assumptions:
- Application Root URL:
https://owncloud.{{< sitevar name="domain" nojs="example.com" >}}
- Authelia Root URL:
https://{{< sitevar name="subdomain-authelia" nojs="auth" >}}.{{< sitevar name="domain" nojs="example.com" >}}
- Client ID:
- Web Application:
ownCloud
- Other Clients: the values
- Web Application:
- Client Secret:
insecure_secret
Some of the values presented in this guide can automatically be replaced with documentation variables.
{{< sitevar-preferences >}}
Configuration
Authelia
The following YAML configuration is an example Authelia client configuration for use with Nextcloud which will operate with the application example:
identity_providers:
oidc:
# Extend the access and refresh token lifespan from the default 30m to work around ownCloud client re-authentication prompts every few hours.
# It should be possible to remove this once Authelia supports dynamic client registration (DCR).
# Note: ownCloud's built-in IDP uses a value of 30d.
access_token_lifespan: '2d'
refresh_token_lifespan: '3d'
cors:
endpoints:
- 'authorization'
- 'token'
- 'revocation'
- 'introspection'
- 'userinfo'
clients:
- client_id: 'ownCloud'
client_name: 'ownCloud Infinite Scale'
public: true
redirect_uris:
- 'https://owncloud.home.yourdomain.com/'
- 'https://owncloud.home.yourdomain.com/oidc-callback.html'
- 'https://owncloud.home.yourdomain.com/oidc-silent-redirect.html'
- client_id: 'xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69'
client_name: 'ownCloud desktop client'
client_secret: 'UBntmLjC2yYCeHwsyj73Uwo9TAaecAetRwMw0xYcvNL9yRdLSUi0hUAHfvCHFeFh'
scopes:
- 'openid'
- 'groups'
- 'profile'
- 'email'
- 'offline_access'
redirect_uris:
- 'http://127.0.0.1'
- 'http://localhost'
- client_id: 'e4rAsNUSIUs0lF4nbv9FmCeUkTlV9GdgTLDH1b5uie7syb90SzEVrbN7HIpmWJeD'
client_name: 'ownCloud Android app'
client_secret: 'dInFYGV33xKzhbRmpqQltYNdfLdJIfJ9L5ISoKhNoT9qZftpdWSP71VrpGR9pmoD'
scopes:
- 'openid'
- 'groups'
- 'profile'
- 'email'
- 'offline_access'
redirect_uris:
- 'oc://android.owncloud.com'
- client_id: 'mxd5OQDk6es5LzOzRvidJNfXLUZS2oN3oUFeXPP8LpPrhx3UroJFduGEYIBOxkY1'
client_name: 'ownCloud iOS app'
client_secret: 'KFeFWWEZO9TkisIQzR3fo7hfiMXlOpaqP8CFuTbSHzV1TUuGECglPxpiVKJfOXIx'
scopes:
- 'openid'
- 'groups'
- 'profile'
- 'email'
- 'offline_access'
redirect_uris:
- 'oc://ios.owncloud.com'
- 'oc.ios://ios.owncloud.com'
Application
To configure Nextcloud to utilize Authelia as an OpenID Connect 1.0 Provider:
- Install the Nextcloud OpenID Connect Login app
- Add the following to the Nextcloud
config.php
configuration:
WEB_OIDC_CLIENT_ID=ownCloud