Changeset

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 5502:fd4d89a5b8db
children 5504:7d9dce4e7dd0
files mod_oidc_userinfo_vcard4/README.md mod_oidc_userinfo_vcard4/mod_oidc_userinfo_vcard4.lua
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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]
--- 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" }