-
Notifications
You must be signed in to change notification settings - Fork 18
/
spid-auth.php
104 lines (100 loc) · 5.94 KB
/
spid-auth.php
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?php
/**
* This file contains the configuration options needed for SPIDAuth Package.
*
* @package Italia\SPIDAuth
* @license BSD-3-clause
*/
return [
'sp_entity_id' => 'https://laravel-test',
'sp_base_url' => 'https://localhost',
'sp_service_name' => 'SPID service name',
'sp_organization_name' => 'Example',
'sp_organization_display_name' => 'Example Organization',
'sp_organization_url' => 'https://example.org',
'sp_acs_index' => 0,
'sp_attributes_index' => 0,
'sp_requested_attributes' => [
'spidCode',
'name',
'familyName',
// 'placeOfBirth',
// 'countyOfBirth',
// 'dateOfBirth',
// 'gender',
'fiscalNumber',
// 'companyName',
// 'registeredOffice',
// 'ivaCode',
// 'idCard',
// 'mobilePhone',
// 'email',
// 'address',
// 'digitalAddress',
// 'expirationDate',
],
'sp_certificate_file' => null,
'sp_private_key_file' => null,
'sp_certificate' => 'MIIDgzCCAmugAwIBAgIULAp1YQlWoEPUrugRqWqbUf3ES3wwDQYJKoZIhvcNAQELBQAwUTELMAkGA1UEBhMCSVQxCzAJBgNVBAgMAlJNMQ0wCwYDVQQHDARSb21lMSYwJAYDVQQKDB1BZ2VuemlhIHBlciBsJ0l0YWxpYSBEaWdpdGFsZTAeFw0yMzA1MjkxMDUzNDNaFw0zMDEyMzExMDUzNDNaMFExCzAJBgNVBAYTAklUMQswCQYDVQQIDAJSTTENMAsGA1UEBwwEUm9tZTEmMCQGA1UECgwdQWdlbnppYSBwZXIgbCdJdGFsaWEgRGlnaXRhbGUwggEiMA0GCSqGSIb3DQE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EOs/EaLNfy30RDsSUtMcpV71sb9hcS/qDHga+CZomyXwllsxpd6lhnOnap27IROuMxSGi6kkQMURV+OR/P8wGQU4GTJqpejMBJLjn5/knnaS8uRlbnmcg/tWqV82XDbBKOnfk2H3plAoGAASfqKiFCSvMnHKSRI4LZZXXWdHvx2jDOPBy4Gobclm5Y2Fw/OMjFDsXJSYGreITKSeLaXL/c8MXi1KbxDm7L8Ml78f/4nFPoT7fsnKSjK4qs5pd8iT3wRtijldiroPoEyrZZvZB7kMzHdCsoiYM0ba0Xc14AggrCsfKPXMxMhFs=',
'sp_spid_level' => 'https://www.spid.gov.it/SpidL1',
'sp_contact_persons' => [
'other' => [
'Private' => true,
'EmailAddress' => 'other@other.org',
'VATNumber' => '12345678901',
'FiscalCode' => 'FNTCMS73M25L224C',
// for public SP example:
// 'Public' => true,
// 'IPACode' => 'public administration code: mandatory for public SP'
],
'billing' => [
'Private' => true,
'EmailAddress' => 'billing@other.org',
'TelephoneNumber' => '+39329000001',
'CessionarioCommittente' => [
'DatiAnagrafici' => [
'IdFiscaleIVA' => [
'IdPaese' => 'IT',
'IdCodice' => '12345678901',
],
'Anagrafica' => [
'Denominazione' => 'Società dei collaudi',
],
],
'Sede' => [
'Indirizzo' => 'via dei test',
'NumeroCivico' => '1756',
'CAP' => '20212',
'Comune' => 'Milano',
'Provincia' => 'MI',
'Nazione' => 'IT',
]
],
'VATNumber' => '12345678901',
]
],
'hide_real_idps' => false,
'expose_sp_metadata' => true,
'expose_idps_json' => true,
'only_sp_logout' => false,
// 'test_idp' => false,
'test_idp' => [
'entityId' => 'spid-testenv',
'sso_endpoint' => 'https://spid-testenv/sso',
'slo_endpoint' => 'https://spid-testenv/slo',
'x509cert' => 'spid-testenv-cert',
],
// 'validator_idp' => false,
'validator_idp' => [
'entityId' => 'spid-validator',
'sso_endpoint' => 'https://spid-validator/sso',
'slo_endpoint' => 'https://spid-validator/slo',
'x509cert' => 'spid-validator-cert',
],
'middleware_group' => 'web',
'routes_prefix' => 'spid',
'login_view' => 'spid-auth::login-spid',
'after_login_url' => '/',
'after_logout_url' => '/',
];