code share
Subsequent Form Based SSO
Updated 5 months ago•Originally posted on 16-Sep-2018 by
Niels van Sluis
2709
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}]
.
Comments on this Snippet