From 7e6e377bd936864150cc1ca0f11f1178a899f0c0 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Tue, 9 Nov 2010 10:06:56 +0000 Subject: [PATCH] Add openid2name attribute map. Thanks to Brook Schofield for assembling this attribute map. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2625 44740490-163a-0410-bde0-09ae8108e29a --- attributemap/openid2name.php | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 attributemap/openid2name.php diff --git a/attributemap/openid2name.php b/attributemap/openid2name.php new file mode 100644 index 000000000..7a3e68611 --- /dev/null +++ b/attributemap/openid2name.php @@ -0,0 +1,40 @@ +<?php +$attributemap = array( + + // The following attributes can used to manufacture usernames +// 'openid' => '', // OpenID Claimed_ID/Identity_URL of the user +// 'openid.local_id' => '', // Identity URL returned by OpenID Server +// 'openid.server_url' => '', // + + // Simple Registration + AX Schema + 'http://axschema.org/namePerson/friendly' => 'displayName', // Alias/Username -> displayName + 'openid.sreg.nickname' => 'displayName', + 'http://axschema.org/contact/email' => 'mail', // Email + 'openid.sreg.email' => 'mail', + 'http://axschema.org/namePerson' => 'displayName', // Full name -> displayName + 'openid.sreg.fullname' => 'displayName', + 'http://axschema.org/contact/postalCode/home' => 'postalCode', // Postal code + 'openid.sreg.postcode' => 'postalCode', + 'http://axschema.org/contact/country/home' => 'countryName', // Country + 'openid.sreg.country' => 'countryName', + 'http://axschema.org/pref/language' => 'preferredLanguage', // Language + 'openid.sreg.language' => 'preferredLanguage', + + // Name + 'http://axschema.org/namePerson/prefix' => 'personalTitle', // Name prefix + 'http://axschema.org/namePerson/first' => 'givenName', // First name + 'http://axschema.org/namePerson/last' => 'sn', // Last name + + // Work + 'http://axschema.org/company/name' => 'o', // Company name + 'http://axschema.org/company/title' => 'title', // Job title + + // Telephone + 'http://axschema.org/contact/phone/default' => 'telephoneNumber', // Phone (preferred) + 'http://axschema.org/contact/phone/home' => 'homePhone', // Phone (home) + 'http://axschema.org/contact/phone/business' => 'telephoneNumber', // Phone (work) + 'http://axschema.org/contact/phone/cell' => 'mobile', // Phone (mobile) + 'http://axschema.org/contact/phone/fax' => 'facsimileTelephoneNumber', // Phone (fax) + + // Further attributes can be found at http://www.axschema.org/types/ +); -- GitLab