Forum Discussion

Jean-Christoph4's avatar
Jean-Christoph4
Icon for Nimbostratus rankNimbostratus
Aug 21, 2019

Two Factor Authentication

Hi Guys,

 

I'm trying to setup a logon page with 2 Factor Authentication where, the F5 Load Balancer will validate the Login / OTP Code against Radius and then forward an HTTP Basic Authentication with Username / Password to the Web Server.

The First part (Radius Authentication) is working using an access policy. I'm stuck with the second as I don't know how to send the HTTP Basic Authentication request to the server. I was thinking to write an iRule that will be executed after the access policy is successfull (with HTTP_REQUEST & HTTP_REQUEST_DATA) but it looks like it's not going throuhg the iRule.

 

Can someone tell me how I can handle this 2FA ?

 

Thanks & Best Regards,

Jean-Christophe

4 Replies

  • Hi Niels,

     

    Thanks for your answer. The thing is that, once the Radius has authenticated the OTP, the F5 has to send a GET Request to the Web Server with an "Authorization" Header. I'm not sure if I should use the HTTP Authentication (ie: Access => Authentication => HTTP) or the SSO HTTP (ie: Access => Single-Sign-On => HTTP Basic). I guess that the second one is the correct one.

    Right now I'm looking to add some debugging information into the Access Profile to understand where the process fails.

     

    Best Regards,

    Jean-Christophe Valiere

  • Hi Jean-Christophe,

     

    HTTP Authentication will only validate credentials to an external web-based server. You can use this external web-based server to authenticate an user, but it will not necessarily be the service or application the user will be granted access to. With SSO HTTP, the authenticated credentials will be reused to login to the service or application.

     

    So you can have two (or maybe more) scenarios:

     

    1) Radius Auth performing 2FA (Username/Password auth and Token challenge) + HTTP SSO

    2) Radius Auth performing 1FA (token auth) + HTTP Auth 1FA (username/password auth) + HTTP SSO

     

    Kind regards,

     

    --Niels

  • Hi Niels,

     

    Thanks a lot for your support. I went throuhg option 2) and it's working fine.

     

    Best Regards,

    Jean-Christophe