Mercurial > prosody-modules
diff mod_oidc_userinfo_vcard4/mod_oidc_userinfo_vcard4.lua @ 6293:9111c7b24d12
mod_oidc_userinfo_vcard4: Add verbose oidc claim details
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 15 Jul 2025 18:34:22 +0200 |
| parents | dfade0e38930 |
| children |
line wrap: on
line diff
--- a/mod_oidc_userinfo_vcard4/mod_oidc_userinfo_vcard4.lua Tue Jul 15 18:33:40 2025 +0200 +++ b/mod_oidc_userinfo_vcard4/mod_oidc_userinfo_vcard4.lua Tue Jul 15 18:34:22 2025 +0200 @@ -1,10 +1,14 @@ -- Provide OpenID UserInfo data to mod_http_oauth2 -- Alternatively, separate module for the whole HTTP endpoint? -- -module:add_item("openid-claim", "address"); -module:add_item("openid-claim", "email"); -module:add_item("openid-claim", "phone"); -module:add_item("openid-claim", "profile"); +module:add_item("openid-claim", { claim = "address"; title = "Address"; + description = "Address details, if any, given in your user profile."; }); +module:add_item("openid-claim", { claim = "email"; title = "Email"; + description = "Email address entered in your user profile." }); +module:add_item("openid-claim", { claim = "phone"; title = "Phone Number"; + description = "Phone number entered in your user profile."; }); +module:add_item("openid-claim", { claim = "profile"; title = "Profile"; + description = "Complete profile details" }); local mod_pep = module:depends "pep";
