- Home
- DocSpace
- Configuration
- Okta IdP
Okta 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 Okta implementation.
Creating an IdP in Okta
- Sign up for Okta.
-
Go to the Applications -> Applications menu.
-
Click the Create App Integration button:
- Select the SAML 2.0 option and click the Next button.
- In the App name field, enter any name, for example, "IDP Okta DocSpace", to distinguish this application from others, and click the Next button.
- 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 Single sign-on URL https://myportal-address.com/sso/acs Audience URI (SP Entity ID) https://myportal-address.com/sso/ Default RelayState https://myportal-address.com Name ID format EmailAddress Application username Email Update application username on Create and Update Response Signed Assertion Signature Signed Signature Algorithm RSA-SHA256 Digest Algorithm SHA256 Assertion Encryption Encrypted Encryption Algorithm AES128-CBC Key Transport Algorithm RSA-OAEP Authentication context class X.509 Certificate -
In the Attribute Statements form, click Add Another and create 3 parameters (
givenName
,sn
,mail
) specifying a value from the Value list, suitable for issuing from the field catalog of the LDAP directory. - Go to the ONLYOFFICE portal signing in as an administrator. Open the Settings -> Integration -> Single Sign-On page.
- Enable SSO using the Enable Single Sign-on Authentication switcher.
-
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 Okta), then click the OK button.
-
Open any editor, paste the copied text and save the file with the .pem extension.
-
Return to the Okta application creation form. In the Encryption Certificate field, select the newly created public key.
- Click the Next button at the end of the form.
- Click the Finish button.
- In the application description that opens, copy the link from the Metadata URL field.
-
Return to the Single Sign-On page on the ONLYOFFICE portal. Paste the copied link to the field for uploading metadata XML.
Specify the login button caption.
- Click the Save button.
-
The ONLYOFFICE SP Metadata section should be opened with the Donwnload SP Metadata XML button.
-
To configure logout, return to the Okta settings. In the Signature Certificate field, specify a certificate, for example, from step 12. Fill out the Single Logout URL and SP Issuer fields according to th example below.
-
To create users in Okta and provide them access to our ONLYOFFICE SP, perform the following steps:
-
go to the Okta Directory -> People submenu,
- click the Add person button,
-
fill in the form and click Save,
-
go to the Applications -> Applications menu and click the created application,
- click Assign -> Assign to People. In the opened window, select the necessary users and click Assign. Close the window by clicking Done.
-
go to the Okta Directory -> People submenu,
Checking the work of the ONLYOFFICE SP with the Okta 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 Okta 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