Add a new domain
1. Open the Okta app.
2. Go to Applications and select Applications.
3. Click the button Create App Integration.

4. Select SAML 2.0 and give your app a name, then click Next.

5. On the SAML Settings, populate the fields using the information below:
| Fields | Information to be entered |
|---|---|
Single Sign On URL | https://sso.teamviewer.com/saml/acs
(Note: Leave the box Use this for Recipient URL and Destination URL ticked.) |
Audience URI (SP Entity ID) | https://sso.teamviewer.com/saml/metadata |
Name ID Format: | EmailAddress |
Application username |

6. Now click Show Advanced Settings.

7. Change the Assertion Encryption to Encrypted.

8. Next, you must retrieve the TeamViewer Public key to upload it into the Encryption Certificate field.
Note: This file needs to be in Base64 format.

Get TeamViewer Public Key:
The public key of the certificate that is used to sign SAML requests and for the encryption of SAML responses can be obtained by executing the following PowerShell command:
"-----BEGIN PUBLIC KEY-----`n"+ ` ((Select-Xml ` -Content ((Invoke-WebRequest ` https://sso.teamviewer.com/saml/metadata.xml).Content) ` -xpath "//*[local-name()='X509Certificate']").Node[0].'#text') + ` "`n-----END PUBLIC KEY-----" ` | Out-File -FilePath "sso.teamviewer.com -saml.cer" -Encoding ascii
The command downloads the metadata, extracts the public key, and writes it to sso.teamviewer.com - saml.cer file in ascii format.
After Completion, you must convert this file to a Base64 .cer file type.
Convert the sso.teamviewer.com - saml.cer file
To convert the sso.teamviewer.com - saml.cer file into Base64, follow the steps below:
1. Right-click and select Open.
2. Click on Details Tab 3 and select Copy to File.

3. Click Next.

4. Select Base-64 encoded X.509.

5. Click Next.
6. Type in File Name.

7. Click Next.
8. Click Finish.

The result should look like this:













