# HG changeset patch # User Kim Alvefur # Date 1685636178 -7200 # Node ID 320593cf7d90c9a15b311f4a78e83166c840fb80 # Parent fd4d89a5b8db49684679d521ff24e39ddfb7265e mod_oidc_userinfo_vcard4: Advertise OpenID scopes via new mechanism diff -r fd4d89a5b8db -r 320593cf7d90 mod_oidc_userinfo_vcard4/README.md --- a/mod_oidc_userinfo_vcard4/README.md Thu Jun 01 18:16:13 2023 +0200 +++ b/mod_oidc_userinfo_vcard4/README.md Thu Jun 01 18:16:18 2023 +0200 @@ -4,7 +4,7 @@ - Stage-Alpha rockspec: dependencies: - - mod_http_oauth2 + - mod_http_oauth2 >= 200 --- This module extracts profile details from the user's [vcard4][XEP-0292] diff -r fd4d89a5b8db -r 320593cf7d90 mod_oidc_userinfo_vcard4/mod_oidc_userinfo_vcard4.lua --- a/mod_oidc_userinfo_vcard4/mod_oidc_userinfo_vcard4.lua Thu Jun 01 18:16:13 2023 +0200 +++ b/mod_oidc_userinfo_vcard4/mod_oidc_userinfo_vcard4.lua Thu Jun 01 18:16:18 2023 +0200 @@ -3,6 +3,11 @@ -- local nodeprep = require "util.encodings".stringprep.nodeprep; +module:add_item("openid-claim", "address"); +module:add_item("openid-claim", "email"); +module:add_item("openid-claim", "phone"); +module:add_item("openid-claim", "profile"); + local mod_pep = module:depends "pep"; local gender_map = { M = "male"; F = "female"; O = "other"; N = "nnot applicable"; U = "unknown" }