comparison mod_auth_http/README.md @ 6012:889d24be0a49

mod_auth_http: Fixup code block syntax
author Kim Alvefur <zash@zash.se>
date Wed, 06 Nov 2024 00:43:17 +0100
parents fe081789f7b5
children
comparison
equal deleted inserted replaced
6011:4ed37206cd9e 6012:889d24be0a49
68 68
69 ## Examples 69 ## Examples
70 70
71 With the following configuration: 71 With the following configuration:
72 72
73 ``` 73 ``` lua
74 authentication = "http" 74 authentication = "http"
75 http_auth_url = "https://auth.example.net/api" 75 http_auth_url = "https://auth.example.net/api"
76 ```
76 77
77 If a user connects and tries to log in to Prosody as "romeo@example.net" 78 If a user connects and tries to log in to Prosody as "romeo@example.net"
78 with the password "iheartjuliet", Prosody would make the following HTTP 79 with the password "iheartjuliet", Prosody would make the following HTTP
79 request: 80 request:
80 81
81 ``` 82 https://auth.example.net/api/check_password?user=romeo&server=example.net&pass=iheartjuliet
82 https://auth.example.net/api/check_password?user=romeo&server=example.net&pass=iheartjuliet
83 ```
84 83
85 # Compatibility 84 # Compatibility
86 85
87 Requires Prosody 0.11.0 or later. 86 Requires Prosody 0.11.0 or later.