Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

How to use with microsoft authenticator ?

Sakkarin_Westco
Altostratus
Altostratus

Hi team, How to use with Microsoft authenticator? ls let me know or point me in the right direction.

7 REPLIES 7

Hello Sakkarin_Westco.

Microsoft Authenticator is Time-based OTP that is equivalent to Google Authenticator.

There are some examples of how to use F5 with Google Authenticator.

https://clouddocs.f5.com/training/community/iam/html/archived/class9/module5/lab1.html

https://community.f5.com/t5/technical-articles/two-factor-authentication-with-google-authenticator-a...

 

Regards,
Dario.

Sakkarin_Westco
Altostratus
Altostratus

Can you share the irule for generate ga code and ga code_verify ?

For example:

https://community.f5.com/t5/crowdsrc/google-authenticator-token-verification-irule-for-apm/ta-p/2775...

Btw, if this response suits you, please don't forget to give some thumbs up or mark the response as "resolved" to let other people to find it.

Regards,
Dario.

Sakkarin_Westco
Altostratus
Altostratus

Dear  Dario_Garrido 

Is this irule for generate_ga_code ?Screen Shot 2565-04-18 at 22.56.34.png

No mate, this iRule is for GA verifying.

Take into account that there are several steps involved on using Time-based OTP.

  1. Key generation.
  2. Key distribution (usually QR-Code).
  3. Key verification (validate that the code provided by the client is the expected code taking into account the key of this user).

In a production enviroment, F5 should only be doing the third step.

In my lab, I have the user key generated already stored in my A/D.

If my user wants to figure out what the key they have is, then uses a APM policy which captures the user key (LDAP query) and redirects this info to a PHP QR-code generator. Base on this syntax:

https://github.com/google/google-authenticator/wiki/Key-Uri-Format

This is my PHP QR-Code generator

https://github.com/edent/QR-Generator-PHP

After my user has the TOTP key already installed in their device, this previous iRule enters into play.

To be more precise, I'm using this API REST iRule to verify if the validation was passed.

https://community.f5.com/t5/crowdsrc/apm-google-authenticator-http-api/ta-p/287952

 

Regards,
Dario.

BTW, with "generate_ga_code" I think you mean this iRule.

https://community.f5.com/t5/crowdsrc/google-authenticator-irule-for-two-factor-auth-with-ldap/ta-p/2...

But never tested, I recommend you to work in the approach I mentioned previously.

Regards,
Dario.

I've just written this article talking about TOTP and maybe could be helpful in your case.

https://community.f5.com/t5/crowdsrc/demystifying-time-based-otp/ta-p/294658

 

Regards,
Dario.