Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Clear all filters
code share

Subsequent Form Based SSO

Problem this snippet solves:

After performing a successful APM Form Based SSO it can happen that the backend website will expire the user session while the APM session is still active. When this happens, the user will see the logon page of the backend website and needs to login again. This code snippet will try to detect that the user is being redirected to the backend website login page and will perform a Form Based SSO again by using the credentials from the active APM session.

How to use this snippet:

When using this code snippet, make sure you set the below shown variables to match your environment.

set static::start_uri
set static::form_action

You should also use the Variable Assign agent in the VPE to set the APM session variable session.custom.form_based.password with the users password. This password will be used to perform the subsequent Form Based SSO. Use the following custom expression: return [mcget -secure {session.logon.last.password}].

Tested on Version:
Comments on this Snippet
Comment made 18-Sep-2018 by youssef 3608

Hi Niels, good job!

Comment made 18-Sep-2018 by Niels van Sluis 2742

Thanks Youssef! I hope it will be of use to somebody :-)