traefik-forward-auth icon indicating copy to clipboard operation
traefik-forward-auth copied to clipboard

Nextcloud configuration

Open ccoenen opened this issue 3 years ago • 1 comments

Hi! I figured out how to configure nextcloud, maybe someone can add this to the wiki page?

make sure you replace nc.example.com with your actual domain.

      - DEFAULT_PROVIDER=generic-oauth
      - PROVIDERS_GENERIC_OAUTH_AUTH_URL=https://nc.example.com/apps/oauth2/authorize
      - PROVIDERS_GENERIC_OAUTH_TOKEN_URL=https://nc.example.com/apps/oauth2/api/v1/token
      - PROVIDERS_GENERIC_OAUTH_USER_URL=https://nc.example.com/ocs/v2.php/cloud/user?format=json
      - PROVIDERS_GENERIC_OAUTH_CLIENT_ID=(needs to be taken from nextcloud security settings page)
      - PROVIDERS_GENERIC_OAUTH_CLIENT_SECRET=(needs to be taken from nextcloud security settings page)

A longer post can also be found here: https://help.nextcloud.com/t/nextcloud-as-oauth2-provider-for-any-traefik-forward-auth-possible/93565/3?u=amenthes

ccoenen avatar Sep 29 '20 23:09 ccoenen

Have you managed to get this working in auth host mode? I'm trying this and it's sending me around in circles like in your forum post.

sgofferj avatar Feb 15 '22 11:02 sgofferj