Applies To:
-
BIG-IP APM
21.0.0, 17.5.1, 17.5.0, 17.1.3, 17.1.2, 17.1.1, 17.1.0, 17.0.0, 16.1.6, 16.1.5, 16.1.4, 16.1.3, 16.1.2, 16.1.1, 16.1.0, 15.1.10, 15.1.9
Adding a Variable Assign agent to collect the username in an OAuth MFA subroutine
You should have a per-request policy, and SAML authentication servers for authentication with and without MFA.
Create the subroutines to allow continuous checks and reauthenticate with RADIUS and MFA when the user goes to a specific URL.
-
From the Main tab, click Access > Profiles / Policies > Per-Request Policies.
-
Find the policy you want to edit, and in the Per-Request Policy column, click Edit.
-
In the per-request policy, click Add New Subroutine.
-
Name the subroutine for use with OAuth and MFA. For example,
radius_mfa_okta. -
Click Save.
-
Expand the subroutine, and click the plus to add a new item.
-
Click the Assignment tab, select Variable Assign, and click Add Item.
-
Click Add new entry.
-
On the left, select Custom Variable and type
subsession.logon.last.username. -
On the right, select Session Variable and type
last.subsession.logon.last.logonname. -
Click Finished.
Configure the remaining items for the subroutine.