cancel
Showing results for 
Search instead for 
Did you mean: 
Login & Join the DevCentral Connects Group to watch the Recorded LiveStream (May 12) on Basic iControl Security - show notes included.

Basic Auth Decoding for APM Session Variable

MR_Freddy
Nimbostratus
Nimbostratus

Hello Guys,

 

I am trying to find IRule to get the username and password from Authorization Header (401 Basic Authentication) and pass this variables to SSO credential Mapping Agent (NTLM V1 SSO) on APM Policy ... Anyone can help please ?

1 REPLY 1

Dave_W
F5 Employee
F5 Employee

Hello,

 

You can you get the username and the password with HTTP::username and password:

https://clouddocs.f5.com/api/irules/HTTP__username.html

 

And use Access::session command to set the session variables:

https://clouddocs.f5.com/api/irules/ACCESS__session.html

 

Then use the variable in the SSO Credential Mapping object. Or.....

 

Just use a 401 object in your VPE:

https://techdocs.f5.com/en-us/bigip-15-0-0/big-ip-access-policy-manager-visual-policy-editor/access-...