Mercurial > prosody-modules
comparison mod_oidc_userinfo_vcard4/mod_oidc_userinfo_vcard4.lua @ 5503:320593cf7d90
mod_oidc_userinfo_vcard4: Advertise OpenID scopes via new mechanism
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 01 Jun 2023 18:16:18 +0200 |
parents | cec1b0b0adef |
children | 34b63d0144c3 |
comparison
equal
deleted
inserted
replaced
5502:fd4d89a5b8db | 5503:320593cf7d90 |
---|---|
1 -- Provide OpenID UserInfo data to mod_http_oauth2 | 1 -- Provide OpenID UserInfo data to mod_http_oauth2 |
2 -- Alternatively, separate module for the whole HTTP endpoint? | 2 -- Alternatively, separate module for the whole HTTP endpoint? |
3 -- | 3 -- |
4 local nodeprep = require "util.encodings".stringprep.nodeprep; | 4 local nodeprep = require "util.encodings".stringprep.nodeprep; |
5 | |
6 module:add_item("openid-claim", "address"); | |
7 module:add_item("openid-claim", "email"); | |
8 module:add_item("openid-claim", "phone"); | |
9 module:add_item("openid-claim", "profile"); | |
5 | 10 |
6 local mod_pep = module:depends "pep"; | 11 local mod_pep = module:depends "pep"; |
7 | 12 |
8 local gender_map = { M = "male"; F = "female"; O = "other"; N = "nnot applicable"; U = "unknown" } | 13 local gender_map = { M = "male"; F = "female"; O = "other"; N = "nnot applicable"; U = "unknown" } |
9 | 14 |