File: openid2name.php

package info (click to toggle)
simplesamlphp 1.13.1-2%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 11,304 kB
  • sloc: php: 65,124; xml: 629; python: 376; sh: 193; perl: 185; makefile: 43
file content (40 lines) | stat: -rw-r--r-- 1,872 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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/
);