changeset 6363:8f65b23a5fd2

mod_auth_oauth_external: Improve example Missing ':' in the URLs
author Kim Alvefur <zash@zash.se>
date Sat, 17 Jan 2026 05:13:09 +0100
parents 1d48c75c8200
children 9c110fbecd86
files mod_auth_oauth_external/README.md
diffstat 1 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mod_auth_oauth_external/README.md	Thu Jan 15 17:35:43 2026 +0000
+++ b/mod_auth_oauth_external/README.md	Sat Jan 17 05:13:09 2026 +0100
@@ -24,12 +24,16 @@
 
 ## Example
 
-```lua
--- authentication = "oauth_external"
+### KeyCloak example
 
-oauth_external_discovery_url = "https//auth.example.com/auth/realms/TheRealm/.well-known/openid-configuration"
-oauth_external_token_endpoint = "https//auth.example.com/auth/realms/TheRealm/protocol/openid-connect/token"
-oauth_external_validation_endpoint = "https//auth.example.com/auth/realms/TheRealm/protocol/openid-connect/userinfo"
+```lua
+VirtualHost "example.net"
+authentication = "oauth_external"
+
+-- KeyCloak URLs
+oauth_external_discovery_url = "https://auth.example.com/auth/realms/ExampleRealm/.well-known/openid-configuration"
+oauth_external_token_endpoint = "https://auth.example.com/auth/realms/ExampleRealm/protocol/openid-connect/token"
+oauth_external_validation_endpoint = "https://auth.example.com/auth/realms/ExampleRealm/protocol/openid-connect/userinfo"
 oauth_external_username_field = "xmpp_username"
 ```