Creating a SAML app in Yandex Identity Hub for integration with Passwork
Passwork is a corporate platform designed for secure and reliable storage of secrets (passwords, keys, tokens, etc.), secret management, and automation of employee access to secrets within an organization. Passwork supports SAML authentication for secure SSO for the users of your organization.
For the users of your organization to authenticate to Passwork via SAML
SAML apps can be managed by users with the organization-manager.samlApplications.admin role or higher.
To grant access to Passwork to the users of your organization:
- Create a SAML application in Yandex Identity Hub.
- Set up Yandex Identity Hub integration with Passwork.
- Make sure the application works correctly.
Create an app
- Log in to Yandex Identity Hub
. - In the left-hand panel, select
Apps. - In the top-right corner, click
Create application and in the window that opens:-
Select the SAML (Security Assertion Markup Language) single sign-on method.
-
In the Name field, specify a name for your new app:
passwork-app. -
Optionally, in the Description field, enter a description for the new app.
-
Optionally, add labels:
- Click Add label.
- Add a label in
key: valueformat. - Press Enter.
-
Click Create application.
-
Save the identity provider settings
On the info page of your newly created SAML application passwork-app, copy and save the settings required to establish a relying party trust between the IdP and the service provider on the Passwork side.
-
Under Identity provider (IdP) configuration, copy and save the values of the following fields:
- Issuer / IdP EntityID
- Login URL
- Logout URL
-
Under Application certificate, click Download certificate to download your SAML app certificate.
You will need the saved values later when configuring the integration on the Passwork side.
Set up the integration
To configure Passwork integration with the SAML app you created in Yandex Identity Hub, complete the setup both on the Passwork and Yandex Identity Hub side.
Set up the SAML app in Passwork
Note
The SAML application can be set up in Passwork either by a user with the administrator role or the account owner.
-
Sign in to the Passwork account as owner or administrator.
-
At the top of the screen, click Settings and users, and select SSO settings from the list that opens. In the window that opens:
-
Under General settings, enable these options:
- Enable SSO.
- Automatically confirm new users from SSO.
-
Under User Attributes, specify the user attribute names:
- In the Email attribute field:
emailaddress. - In the Full name attribute field:
fullname.
- In the Email attribute field:
-
Under Identity Provider → Passwork, specify the values you copied (in
passwork-app) and saved earlier:- In the Entity ID field, put the value from the Issuer / IdP EntityID field of the
passwork-appapp. - In the Response URL (assertion consumer service URL) field, put the value from the Login URL field.
- In the Logout URL field, put the value from the Logout URL field.
- In the Certificate field, paste the contents of the certificate downloaded from the
passwork-appapp.
- In the Entity ID field, put the value from the Issuer / IdP EntityID field of the
-
-
Under Passwork → Identity Provider, copy and save the settings required to establish a relying party trust between the IdP and the service provider on the Yandex Identity Hub side:
- Entity ID
- Response URL (assertion consumer service URL)
- Logout URL
-
Click Save settings to save the SSO parameters.
Set up the SAML application in Yandex Identity Hub
- Log in to Yandex Identity Hub
. - In the left-hand panel, select
Apps and select the new SAML apppasswork-app. - At the top right, click
Edit and in the window that opens:- In the **SP EntityID ** field, specify the value copied earlier from the Entity ID field on the Passwork side.
- In the ACS URL field, specify the value copied from the Response URL (assertion consumer service URL) field.
- In the SP Logout URL field, specify the value copied from the Logout URL field.
- Click Save.
Add users to the Yandex Identity Hub SAML application
For the users of your organization to be able to authenticate in Passwork with Yandex Identity Hub's SAML app, you need to explicitly add these users and/or user groups to the app:
Note
Users and groups added to a SAML application can be managed by a user with the organization-manager.samlApplications.userAdmin role or higher.
- Log in to Yandex Identity Hub
. - In the left-hand panel, select
Apps and select the required app. - Navigate to the Users and groups tab.
- Click
Add users. - In the window that opens, select users or user groups.
- Click Add.
Make sure your application works correctly
To make sure both your SAML app and Passwork integration work correctly, sign in to Passwork as one of the users you added to the app. Follow these steps:
-
In your browser, navigate to your Passwork instance URL, e.g.,
https://my-domain.passwork-cloud.ru. -
If already logged in to Passwork, sign out of your account.
-
On the Passwork authentication page, click Log in via SSO.
-
On the Yandex Cloud authentication page, enter the email address and user password. The user or group they belong to must be added to the application.
If authenticating as a Yandex account user, sign in to Yandex ID using your preferred method.
-
Set a master password for the new user you add to Passwork.
-
Make sure you have authenticated in Passwork. As a result, the new user will appear in your Passwork instance settings, and you will be able to configure their permissions to view and manage secrets.