# HG changeset patch # User Kim Alvefur # Date 1768623189 -3600 # Node ID 8f65b23a5fd2b08289c866d8c05767ee7b0d54b0 # Parent 1d48c75c8200e9ba3dcf2c5f91c5215907695b85 mod_auth_oauth_external: Improve example Missing ':' in the URLs diff -r 1d48c75c8200 -r 8f65b23a5fd2 mod_auth_oauth_external/README.md --- 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" ```