Forum Discussion
Programmatically authenticate with F5 VPN
- Dec 20, 2022
Yes, so you could start them here: https://techdocs.f5.com/kb/en-us/products/big-ip_apm/manuals/product/apm-authentication-sso-13-1-0/36.html#guid-c1b617a7-07b5-4ad6-9b84-29d6ecd789b4
And then likely looking into the following chapters for setting up as a Resource Server to authN for an API
Otherwise to match multiple URIs you can use something like switch.
An extract from one of the link i sent you
when HTTP_REQUEST {
switch -glob [HTTP::URI] {
"/" { HTTP::redirect "https://[HTTP::host]/PortalWAR/appmanager/portal/home" }
"/blah/blah*" { HTTP::redirect "https://[HTTP::host]/[HTTP::uri]" }
"*blah" { HTTP::redirect "https://[HTTP::host]/[HTTP::uri]" }
"blah*" { HTTP::redirect "https://[HTTP::host]/[HTTP::uri]" }
"b?ah" { HTTP::redirect "https://[HTTP::host]/[HTTP::uri]" }
}
}
}
Here all those URI will be redirected to something else.
Here you have an example with some regexp.
buulam thanks for your reply!
I am not an admin, no...so if I was to inform the admin to look into OAUTH configuration for the account and I could go that route, yea? Is there a quick link or a guide I can share with them to check or set this up?many thanks!
Yes, so you could start them here: https://techdocs.f5.com/kb/en-us/products/big-ip_apm/manuals/product/apm-authentication-sso-13-1-0/36.html#guid-c1b617a7-07b5-4ad6-9b84-29d6ecd789b4
And then likely looking into the following chapters for setting up as a Resource Server to authN for an API