googleapis / google-auth-library-nodejs

🔑 Google Auth Library for Node.js
Apache License 2.0
1.71k stars 374 forks source link

Retrieving User Account MFA Flags #1759

Closed havoanhnguyen closed 6 months ago

havoanhnguyen commented 7 months ago

I'm trying to check if the user has enabled MFA/2FA, I couldn't find any documentation allowing me to check that flag, Does 'google-auth-library' currently support checking this? If so, could you assist me in checking it officially? Thanks for your support,

danielbankhead commented 7 months ago

We don't offer such functionality in this library - are you using the the auth library for the web or backend?

Loosely related:

havoanhnguyen commented 7 months ago

We using this library for backend site, We using for authenticate GG user If you don't offer such functionality, Does you have plan to support this functionality in the future? Or Does any way to check user has enable MFA/2FA via GG user's account? Thanks for your support and feedback,

danielbankhead commented 7 months ago

We don't have it on the roadmap for this library at the moment, however it may be present in the following web auth libraries:

Related discussion:

As an additional note, in case all of the end users are a within a Google Workspace org, MFA could be enforced on that level:

havoanhnguyen commented 7 months ago

Okie, thank for your support,