Mercurial > prosody-modules
comparison mod_http_oauth2/mod_http_oauth2.lua @ 5771:72799c330986
mod_http_oauth2: Add logger to "session" for auth event
So many assumptions in so many other modules about auth-success/fail
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 04 Dec 2023 21:36:35 +0100 |
| parents | 990c6adc4407 |
| children | 93d6e9026c1b |
comparison
equal
deleted
inserted
replaced
| 5770:990c6adc4407 | 5771:72799c330986 |
|---|---|
| 647 type = "http"; | 647 type = "http"; |
| 648 ip = request.ip; | 648 ip = request.ip; |
| 649 conn = request.conn; | 649 conn = request.conn; |
| 650 username = username; | 650 username = username; |
| 651 host = module.host; | 651 host = module.host; |
| 652 log = request.log; | |
| 652 sasl_handler = { username = username; selected = "x-www-form" }; | 653 sasl_handler = { username = username; selected = "x-www-form" }; |
| 653 client_id = request.headers.user_agent; | 654 client_id = request.headers.user_agent; |
| 654 }; | 655 }; |
| 655 }; | 656 }; |
| 656 if not (username and password) or not usermanager.test_password(username, module.host, password) then | 657 if not (username and password) or not usermanager.test_password(username, module.host, password) then |
