diff 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
line wrap: on
line diff
--- 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" }