comparison mod_rest/README.markdown @ 5159:51f7d72a56c2

mod_rest/README: Words about bearer tokens The examples are inconsistent and confusing wrt authentication, hopefully these words help a bit.
author Kim Alvefur <zash@zash.se>
date Wed, 25 Jan 2023 20:39:13 +0100
parents 09dd378748b8
children 5be04d1b16fb
comparison
equal deleted inserted replaced
5158:ca7feb293d55 5159:51f7d72a56c2
37 ``` 37 ```
38 38
39 ## OAuth2 39 ## OAuth2
40 40
41 [mod_http_oauth2] can be used to grant bearer tokens which are 41 [mod_http_oauth2] can be used to grant bearer tokens which are
42 accepted by mod_rest. 42 accepted by mod_rest. Tokens can be passed to `curl` like
43 `--oauth2-bearer dmVyeSBzZWNyZXQgdG9rZW4K` as in some examples below.
43 44
44 ## Sending stanzas 45 ## Sending stanzas
45 46
46 The API endpoint becomes available at the path `/rest`, so the full URL 47 The API endpoint becomes available at the path `/rest`, so the full URL
47 will be something like `https://your-prosody.example:5281/rest`. 48 will be something like `https://your-prosody.example:5281/rest`.