Comparison

mod_auth_oauth_external/README.md @ 5349:ac9710126e1a

mod_auth_oauth_external: Add configuration example
author Kim Alvefur <zash@zash.se>
date Sat, 15 Apr 2023 10:54:34 +0200
parent 5348:ff539f34769f
child 5434:92ad8f03f225
comparison
equal deleted inserted replaced
5348:ff539f34769f 5349:ac9710126e1a
17 17
18 Alternatively for legacy clients, Prosody receives the users username 18 Alternatively for legacy clients, Prosody receives the users username
19 and password and retrieves a token itself, then proceeds as above. 19 and password and retrieves a token itself, then proceeds as above.
20 20
21 # Configuration 21 # Configuration
22
23 ## Example
24
25 ```lua
26 -- authentication = "oauth_external"
27
28 oauth_external_discovery_url = "https//auth.example.com/auth/realms/TheRealm/.well-known/openid-configuration"
29 oauth_external_token_endpoint = "https//auth.example.com/auth/realms/TheRealm/protocol/openid-connect/token"
30 oauth_external_validation_endpoint = "https//auth.example.com/auth/realms/TheRealm/protocol/openid-connect/userinfo"
31 oauth_external_username_field = "xmpp_username"
32 ```
33
34
35 ## Common
22 36
23 `oauth_external_issuer` 37 `oauth_external_issuer`
24 : Optional URL string representing the Authorization server identity. 38 : Optional URL string representing the Authorization server identity.
25 39
26 `oauth_external_discovery_url` 40 `oauth_external_discovery_url`