- Home
- DocSpace
- Configuration
- OneLogin IdP
OneLogin IdP
Introduction
Single Sign-on (SSO) is a technology that allows users to sign in only once and then get access to multiple applications/services without re-authentication.
If a web portal includes several large independent sections (forum, chat, blogs etc.), a user can undergo the authentication procedure within one of the services and automatically get access to all other services without entering credentials several times.
SSO is always ensured by the joint operation of two applications: an Identity Provider and a Service Provider (also called as "IdP" and "SP"). ONLYOFFICE SSO implements the SP only. A lot of different providers can act as an IdP, but this article considers the OneLogin implementation.
Creating an IdP in OneLogin
- Sign up for OneLogin, if you have not yet registered.
- Sign in to OneLogin as an administrator.
-
Go to the Applications -> Applications -> Add App menu.
-
In the Find Application search field, type in the following text: SAML Custom Connector (Advanced):
- Select the found option.
-
In a new window that opens, enter any Display Name, for example, "IDP OneLogin DocSpace", to distinguish this application from others, and click the Save button.
-
Go to the Configuration submenu and fill in the fields according to the table below:
Please specify your own domain name or public IP where your ONLYOFFICE SP is hosted instead of myportal-address.com.
Application Details RelayState https://myportal-address.com Audience (EntityID) https://myportal-address.com/sso/ Recipient https://myportal-address.com/sso/acs ACS (Consumer) URL Validator* ^https:\/\/myportal-address\.com\/sso\/acs\/$ ACS (Consumer) URL* https://myportal-address.com/sso/acs Single Logout URL https://myportal-address.com/sso/slo/callback SAML initiator Service Provider SAML nameID format Email SAML issuer type Specific SAML signature element Assertion Encrypt assertion SAML encryption method AES-128-CBC Sign SLO Request Sign SLO Response -
Click the Save button and go to the Parameters submenu.
-
Use the Add parameter link to create 3 parameters (
givenName
,sn
,mail
). Check the Include in SAML assertion option and specify a value from the Value list, suitable for issuing from the field catalog of the LDAP directory, for all of them: -
Once you fill in all the necessary fields for SAML assertion attributes in the IdP, you should receive nearly the same result as shown in the figure below. Click the Save button.
-
Go to the SSO submenu. Choose a valid certificate from the certificate list by clicking the Change link, if you have several certificates. In the SAML Signature Algorithm field, leave the SHA-1 option and click the Save button:
- Copy the link from the Issuer URL field (e.g., https://app.onelogin.com/saml/metadata/4d87973f-629d-4a52-812e-bde45eff92b8) and go to the ONLYOFFICE portal signing in as an administrator. Open the Settings -> Integration -> Single Sign-On page.
Configuring ONLYOFFICE SP
- Enable SSO using the Enable Single Sign-on Authentication switcher and paste the link copied from the OneLogin issuer URL into the URL to Idp Metadata XML field.
- Press the button with the upward arrow to load the IdP metadata. The ONLYOFFICE SP Settings form will be automatically filled in with your data from the OneLogin IdP.
-
Now you need to create a certificate in the SP Certificates section. To do that, click the Add certificate button in the corresponding section.
-
In the opened modal window, click the Generate New Self-Signed Certificate link, choose the Signing and encryption option in the Use for list. Before you save the certificate, copy the Public Certificate text to the clipboard (it will be necessary for OneLogin), then click the OK button.
- Click the Save button.
- The ONLYOFFICE SP Metadata section should be opened.
-
Return to OneLogin to set up encryption, open your application and go to the Configuration setting. Scroll down the page - the new SAML Encryption field for entering an encryption key should appear. Paste the copied Public Certificate text from the step 4 of this instruction into this field and click the Save button:
Creating users in OneLogin and giving them access to ONLYOFFICE
To create users in OneLogin and provide them access to our ONLYOFFICE SP, perform the following steps:
-
go to the OneLogin Users page signing in as an administrator,
- create a new user or edit an existing one,
- go to the Applications submenu and click the + button,
-
select our newly created application from the list and click Continue,
- in a new window that opens add the missing data and click the SAVE button,
- now the user is able to work in ONLYOFFICE SP.
Checking the work of the ONLYOFFICE SP with the OneLogin IdP
Logging in to ONLYOFFICE on the SP side
- Go to the ONLYOFFICE Authentication page (e.g., https://myportal-address.com/Auth.aspx).
-
Click the Single sign-on button. If the button is missing, this means that SSO is not enabled.
-
If all the SP and IdP parameters are set correctly, we will be redirected to the OneLogin IdP login form:
- Enter the login and password of the user who has been granted access to the ONLYOFFICE SP and click the LOG IN button.
-
If the credentials are correct, we will be redirected to the main page of the portal (the user will be created automatically if missing, or the data will be updated if changed in the IDP).
Host ONLYOFFICE DocSpace on your own server or use it in the cloud
Article with the tag:
Browse all tags