Jump to content
David P

Adding MFA with an Authenticator application

Recommended Posts

Hello

 

Has anyone added MFA support using authenticator apps for their application?  Any resources greatly received.

 

Thanks

 

D

Share this post


Link to post
Posted (edited)
2 hours ago, David P said:

Has anyone added MFA support using authenticator apps for their application?  Any resources greatly received.

dzOTP
Tool to test OneTimePad tokens generated by the FreeOTP Android App

 

That was a long time ago, so I don't really remember how exactly this worked.

Edited by dummzeuch

Share this post


Link to post

Thanks for that.  I've added OTP support already, but wish to add the use of authenticator apps like MS/Google Authenticator but there's not a lot of info out there.

Share this post


Link to post

For those that may be searching for this in the future:

 

You need to assemble a URL and display it as a QR code so it can be scanned by an authenticator application.  The format is given here:

 

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

 

I use this string and substitue in my values.

 

   otpauth://totp/[COMPANY]:[ACCOUNT]?secret=[SECRET]&issuer=[ISSUER]&algorithm=[ALGO]&digits=[DIGITS]&period=[PERIOD]

 

You then display it as a QR code for the user to add to their authenticator application.  I found that whatever time period I entered into the URL(30sec, 60sec etc), the authenticator applications always defaulted to 30 seconds.  This means your TOTP checking code also needs to use a 30s window.

Edited by David P

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×