# HG changeset patch # User Kim Alvefur # Date 1681548874 -7200 # Node ID ac9710126e1a6f28648a472d3c50f4032514afd5 # Parent ff539f34769f51a966df7987e0c278b859234de5 mod_auth_oauth_external: Add configuration example diff -r ff539f34769f -r ac9710126e1a 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.