Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

F5 APM

F5 BIG-IP Access Policy Manager (APM) SAML Setup

This guide walks through a basic setup for connecting Kasm to F5 BIG-IP Access Policy Manager (APM) SAML via SAML using Active Diretory as a backend. Active Directory user accounts are assumed to have a populated email address attribute. Also an LDAP Service account should be created in Active Directory already.

Prerequisites

Before starting the configuration, F5 BIG-IP should be enabled with Local Traffic (LTM) and Access Policy Manager (APM) feature.

Architecture

Here is the architecture for this deployment.

F5 BIG-IP APM and Kasm Architecture

Signing Certificate

  1. From the F5 BIG-IP console, select System, select Certificate Management, select Traffic Certificate Management, and select SSL Certificate List.
  2. Click Create....
  3. Enter Certificate settings:
SettingValue
NameEnter friendly name for identification
IssuerSelf
Common NameEnter the hostname for the SAML Identity Provider, e.g. auth.internal.kasm
Division/Organization/Locality/State or Province/CountryEnter the relevant details as appropriate
LifetimeEnter appropriate lifetime according to organization policy
Subject Alternative NameEnter as DNS:<SAML Identity Provider hostname>

Signing Certificate

  1. Click Finished.
  2. Click on the newly created signing certificate. Click Export, and then copy the Certificate Text. This data will be used in the creation of the Kasm SAML configuration in the next section.

Create a new SAML configuration in Kasm

  1. Log into the Kasm UI as an administrator.
  2. Select Access Management -> Authentication -> SAML -> Add Configuration.
  3. The SAML 2.0 Configuration page will auto-generate the Entity ID, Single Sign On Service, Single Logout Server, and Relay State values.
  4. Update the form with the following entries.
SettingValue
Service Provider---
EnabledYes
Display NameEnter friendly name for F5 SAML IdP
Host NameEnter Kasm Workspaces host name
DefaultUnchecked
Auto LoginUnchecked
Group Member AttributeLeave empty
NameID AttributeemailAddress
DebugChecked Remark: Leave checked for more debug messages. Can be unchecked if confirmed everything is working.
Identity Provider---
Entity Idhttp://<F5 SAML IdP hostname>/idp
Single Sign On Servicehttps://<F5 SAML IdP hostname>/saml/idp/profile/redirectorpost/sso
Single Logout Service:https://<F5 SAML IdP hostname>/saml/idp/profile/redirect/sls
X509 CertificateCertificate data from the previous section
Advanced Settings---
Want Attribute StatementChecked
Send Requested Authn ContextChecked
Want Assertion SignedChecked
Want Name IDChecked
Signature Algorithmhttp://www.w3.org/2001/04/xmldsig-more#rsa-sha256
Digest Algorithmhttp://www.w3.org/2001/04/xmlenc#sha256

Kasm SAML Configurations

  1. Click Save to save the changes.
  2. Click the Edit icon to re-open to SAML configuration. Leave this page open and continue to the next steps.

Upload or Confirm F5 iApp Guided Configurations package

  1. From the F5 BIG-IP console, select iApps and select Package Management LX. Confirm f5-iappsix-access-framework and f5-iappsix-access-saml-idp exists.
  2. If the package does not exist, download Access and Advanced WAF Guided Configuration packages under Guided Configuration product line in BIG-IP Group from MyF5 page. Go back to the Package Management LX console, click Import..., select the package and click Upload. Repeat the upload for the next package.
  3. Confirm the f5-iappsix-access-framework and f5-iappsix-access-saml-idp packages are installed.

F5 iApps Guided Configurations Packages

Import TLS certificate for SAML Identity Provider

  1. From the F5 BIG-IP console, select System, select Certificate Management, select Traffic Certificate Management, and select SSL Certificate List.
  2. Import TLS certificate key in PEM format.
  • Click Import.
  • Select Import Type as Key.
  • Click Choose File.... Select certificate key file.
  • Click Import.
  1. Import TLS certificate in PEM format.
  • Click Import.
  • Select Import Type as Certificate.
  • Click Choose File.... Select certificate file.
  • Click Import.
  1. Ensure the TLS certificate key and certificate are properly imported.
  2. Select Local Traffic, select Profiles, select SSL, and select Client.
  • Click Create....
  • Update the form with the following entries. For rows where Custom is enabled, remember to click the checkbox on the right hand side.
SettingValueCustom
NameEnter friendly name for the Client SSL ProfileNot Applicable
Certificate Key ChainClick Add. Select the TLS certificate imported in last section for the certificate. Remember this is not the signing certificate. Select the TLS certificate key.Yes
  • Click Finished.

F5 Guided Configuration

  1. From the F5 BIG-IP console, select Access and then select Guided Configuration.
  2. Click Federation.
  3. Click SAML Identity Provider for Applications.
  4. Click Next in the page of Configuration Example.
  5. Update the Identity Provider Properties form with the following entries.
SettingValue
Configuration NameEnter friendly name for the configuration
Entity Idhttp://<F5 SAML IdP hostname>/idp
Schemehttps
Host Name<F5 SAML IdP hostname>
Assertion Properties \ Signing KeySelect the IdP signing certificate key previously imported
Assertion Properties \ Signing CertificateSelect the IdP signing certificate previously imported

Click Save & Next.

  1. Update the Virtual Server Properties form with the following entries.
SettingValue
Destination AddressEnter F5 SAML IdP Virtual Server IP address
Service Port443 / HTTPS
Enable Redirect PortChecked
Redirect Port80 / HTTP
Client SSL ProfileSelect Use Existing / Add previously created Client SSL Profile

Click Save & Next.

  1. Update the Authentication Properties form with the following entries.
SettingValue
Choose Authentication Server TypeActive Directory
Choose New Authentication ServerCreate New
Authentication Server Properties \ Domain NameEnter Active Directory domain name
Server ConnectionDirect
Domain ControllerEnter Domain Controller IP address
Admin NameEnter the service account for authenticating users in Active Directory using LDAP
Admin PasswordEnter the password for the above service account
Verify Admin PasswordEnter the password for the above service account again

Click Save & Next.

  1. Click Save & Next on the Multi Factor Authentication form.
  2. Click Add Application on the Configured Application List form.
  3. Update the Authentication Properties form with the following entries.
SettingValue
Select method to configure your applicationCustom
Application NameEnter friendly application name
IdP Initiated SSONo
Create New or pick existing SP ConnectorCreate New
Service Provider NameEnter friendly Service Provider Name
Entity IDCopy Entity ID from Kasm administration panel under Access Management -> Authentication -> SAML. It should look like https://<Kasm Workspaces hostname>/api/metadata/?id=<Kasm generated ID>
Assertion Consumer ServicesSelect Default on Index 0. Copy Single Sign On Service from Kasm administration panel under Access Management -> Authentication -> SAML to Location URL. It should look like https://<Kasm Workspaces hostname>/api/acs/?id=<Kasm generated ID> Keep Binding to POST.

Click Save.

  1. Click on the newly created application. Click on Show Advanced Setting to modify properties previously hidden.
  2. Select Yes on Does SaaS application require SAML attributes?
  3. Update the Authentication Properties form with the following entries.
SettingValue
SAML Attributes \ Attribute NameNameID
SAML Attributes \ Attribute ValueemailAddress
Single Logout Service Settings \ Single Logout Request URLCopy Single Logout Service from Kasm administration panel under Access Management -> Authentication -> SAML to Location URL. It should look like https://<Kasm Workspaces hostname>/api/slo/?id=<Kasm generated ID>
Single Logout Service Settings \ Single Logout Response URLCopy Single Logout Service from Kasm administration panel under Access Management -> Authentication -> SAML to Location URL. It should look like https://<Kasm Workspaces hostname>/api/slo/?id=<Kasm generated ID>
Single Logout Service Settings \ Single Logout BindingPOST

Click Save.

  1. Click Save & Next on the next three screens, including Endpoint Checks Properties, Customization Properties and Session Management Properties.
  2. Click Deploy.
  3. Click Finish. Confirm the application has a Deployed status.
  4. In the Kasm Workspaces login screen, there will be a new button for login via F5 APM. Click to test the new SAML authentication method.

Configuration Video Tutorial

This video walks through configuring F5 APM SAML Identity Provider as discussed above.