Mercurial > prosody-modules
comparison mod_http_oauth2/mod_http_oauth2.lua @ 6248:28fd42866be9
mod_http_oauth2: Add comment referencing RFC 8176
Took a while to recall where this was defined.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 07 Jun 2025 22:13:41 +0200 |
| parents | 7cf1fcac9b94 |
| children | aae94f82c56e |
comparison
equal
deleted
inserted
replaced
| 6247:7cf1fcac9b94 | 6248:28fd42866be9 |
|---|---|
| 1033 iss = get_issuer(); | 1033 iss = get_issuer(); |
| 1034 sub = url.build({ scheme = "xmpp"; path = user_jid }); | 1034 sub = url.build({ scheme = "xmpp"; path = user_jid }); |
| 1035 aud = params.client_id; | 1035 aud = params.client_id; |
| 1036 auth_time = auth_state.user.iat; | 1036 auth_time = auth_state.user.iat; |
| 1037 nonce = params.nonce; | 1037 nonce = params.nonce; |
| 1038 amr = auth_state.user.amr; | 1038 amr = auth_state.user.amr; -- RFC 8176: Authentication Method Reference Values |
| 1039 }); | 1039 }); |
| 1040 local ret = response_handler(client, params, user_jid, id_token); | 1040 local ret = response_handler(client, params, user_jid, id_token); |
| 1041 if errors.is_err(ret) then | 1041 if errors.is_err(ret) then |
| 1042 return error_response(request, redirect_uri, ret); | 1042 return error_response(request, redirect_uri, ret); |
| 1043 end | 1043 end |
