From 19ef4833e927b9bf4984b43913a39ed58a45a98f Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Tue, 4 Feb 2025 17:57:36 +0100 Subject: [PATCH] docs: fix reauthentication in caddy-security example --- docs/docs/guides/proxy-services.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/docs/guides/proxy-services.md b/docs/docs/guides/proxy-services.md index 2254695..f37e426 100644 --- a/docs/docs/guides/proxy-services.md +++ b/docs/docs/guides/proxy-services.md @@ -23,7 +23,7 @@ With [caddy-security](https://github.com/greenpau/caddy-security) you can easily #### 1. Create a new OIDC client in Pocket ID. -Create a new OIDC client in Pocket ID by navigating to `https:///settings/admin/oidc-clients`. Now enter `https:///auth/oauth2/generic/authorization-code-callback` as the callback URL. After adding the client, you will obtain the client ID and client secret, which you will need in the next step. +Create a new OIDC client in Pocket ID by navigating to `https:///settings/admin/oidc-clients`. Now enter `https:///caddy-security/oauth2/generic/authorization-code-callback` as the callback URL. After adding the client, you will obtain the client ID and client secret, which you will need in the next step. #### 2. Install caddy-security @@ -66,7 +66,7 @@ caddy add-package github.com/greenpau/caddy-security } authorization policy mypolicy { - set auth url /auth/oauth2/generic + set auth url /caddy-security/oauth2/generic allow roles user inject headers with claims } @@ -75,8 +75,7 @@ caddy add-package github.com/greenpau/caddy-security https:// { @auth { - path /auth/oauth2/generic - path /auth/oauth2/generic/authorization-code-callback + path /caddy-security/* } route @auth {