mod_auth_oauth_external: Add configuration example
authorKim Alvefur <zash@zash.se>
Sat, 15 Apr 2023 10:54:34 +0200
changeset 5353 ac9710126e1a
parent 5352 ff539f34769f
child 5354 f8ec43db580b
mod_auth_oauth_external: Add configuration example
mod_auth_oauth_external/README.md
--- a/mod_auth_oauth_external/README.md	Sat Apr 15 10:46:04 2023 +0200
+++ b/mod_auth_oauth_external/README.md	Sat Apr 15 10:54:34 2023 +0200
@@ -20,6 +20,20 @@
 
 # Configuration
 
+## Example
+
+```lua
+-- authentication = "oauth_external"
+
+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"
+oauth_external_username_field = "xmpp_username"
+```
+
+
+## Common
+
 `oauth_external_issuer`
 :   Optional URL string representing the Authorization server identity.