Debian Codegraph @

doc/sources/admin/applications/salesforce.rst

raw
1 SalesForce
2 ==========
3
4 |image0|
5
6 Presentation
7 ------------
8
9 Salesforce Inc. is a cloud computing company. It is best known for their
10 CRM products and social networking applications.
11
12 It allows one to use SAML to authenticate users. It can deal with both
13 SP and IdP initiated modes.
14
15 This page presents the SP initiated mode.
16
17 To work with LL::NG it requires:
18
19 - LL::NG configured as :doc:`SAML Identity Provider<../idpsaml>`
20
21 Configuration
22 -------------
23
24 You should have configured LL::NG as a
25 :doc:`SAML Identity Provider<../idpsaml>`.
26
27 Create Salesforce domain
28 ~~~~~~~~~~~~~~~~~~~~~~~~
29
30 |image1|
31
32 For using SP-initiated mode, you must create your salesforce domain.
33 Creation can take up to 1 hour. (if it is superior to 1h, then there is
34 a problem. Problems are generally resolved in up to 72 hours)
35
36 Then you must **deploy** this domain in order to go on with the
37 configuration.
38
39 Finally, just ensure that at least:
40
41 - Login policy
42 - Redirect policy
43 - domain name
44 - authentication service
45
46 match with the correct values. (adapt the domain if necessary)
47
48
49 .. attention::
50
51 For now, the authentication service parameter has no
52 domain available. You must come back later to fill this parameter. Once
53 SAML cinematics are working, you can then put your domain, and delete
54 the login form, and you'll have an automatic redirection to your
55 Identity Provider (no need for the user to click). Note that you can
56 always access Salesforce by the general login page:
57 https://login.salesforce.com\
58
59 SAML settings
60 ~~~~~~~~~~~~~
61
62 Salesforce is not able to read metadata, you must fill the information
63 into a form.
64
65 |image2|
66
67 Go to the SAML Single Sign On settings, and fill these information:
68
69 - Name: should be filled automatically with your organization or domain
70 - SAML Version: check that version 2.0 is used
71 - Issuer: this is the LemonLDAP::NG (our IdP) Entity Id, which is by
72 default #PORTAL#/saml/metadata
73 - Identity Provider Certificate: whereas it is mentioned that this is
74 the authentication certificate, you must give your LemonLDAP::NG
75 (IdP) signing certificate. If you don't have one, create it with the
76 signing key pair already generated (you could do this with openssl).
77 SSL authentication (https) does not seem to be checked anyway.
78 - Signing Certificate: choose a certificate for SP signature. (create
79 one if none is present)
80 - Assertion decryption Certificate: choose a certificate only if you
81 want to cipher your assertion. (default is not to cipher)
82 - SAML Identity Type: choose Federation ID. This means that the user
83 Name ID will be mapped to the Federation ID field. (see next section)
84 - SAML Identity Location: choose if the user Name ID is held in the
85 subject or in some attribute
86 - Identity Provider Login URL: the user/password SAML portal location
87 on the IdP
88 - Identity Provider Logout URL: the logout location on the IdP
89 - Custom Error URL: you can redirect the user to a special page when an
90 error is happening
91 - SP Initiated Binding: chose any of the supported binding (every one
92 listed there is currently supported on LemonLDAP::NG) HTTP POST is a
93 good choice
94 - Salesforce Login URL: generated automatically. This is the entry
95 point of our login cinematic.
96 - OAuth 2.0 Token Endpoint: not used here
97 - API Name: filled automatically
98 - User Provisioning Enabled: should create automatically the user in
99 Salesforce (not functionnal right now)
100 - EntityId: Salesforce (the SP) Entity ID. Fill this field accordingly.
101 It should be the same value as the organization domain url, displayed
102 on the previous section
103
104 Configure Federation ID
105 ~~~~~~~~~~~~~~~~~~~~~~~
106
107 Finally, configure for each user his Federation ID value. It will be the
108 link between the SAML assertion coming from LemonLDAP::NG (the IdP) and
109 a given user in Salesforce. Here, the mail has been chosen as the user
110 Name ID.
111
112 |image3|
113
114 Once this is completed, click to export the Salesforce metadata and
115 import them into LemonLDAP::NG, into the declaration of the Salesforce
116 Service Provider.
117
118 See
119 :doc:`Register partner Service Provider on LemonLDAP::NG<../idpsaml>`
120 configuration chapter.
121
122 .. |image0| image:: /applications/salesforce-logo.jpg
123 :class: align-center
124 .. |image1| image:: /applications/my_domain_salesforce-resize-web.png
125 :class: align-center
126 .. |image2| image:: /applications/saml_sso_settings-resize-web.png
127 :class: align-center
128 .. |image3| image:: /applications/user_federation_id-resize-web.png
129 :class: align-center
130