grails-qrcode | The Grails QR Code plugin | Plugin library
kandi X-RAY | grails-qrcode Summary
kandi X-RAY | grails-qrcode Summary
This plugin allows you to create QR codes as part of your Grails application without the need for an external service.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of grails-qrcode
grails-qrcode Key Features
grails-qrcode Examples and Code Snippets
Community Discussions
Trending Discussions on grails-qrcode
QUESTION
In Google Authenticator app you can either scan a QR code or manually type a key provided by the issuer.
In the following screenshot you can see the setup of 2FA among Google Security settings, displaying how to get the TOTP by following the 2nd method.
My question is: how is this key generated?
I'm trying to support 2FA with Google Authenticator for my website and I found many references and docs about how to generate the QR code, but none even mentioning the alternate method.
Edit:
To be a bit clearer, I'm supporting 2FA with Google Authenticator in a Grails 3 webapp. I already implemented the whole user flow by generating a secret key (Base32
string) for each user, providing a QR code for users to scan, and verifying the TOTP on login. I used as dependencies:
org.jboss.aerogear:aerogear-otp-java
, aerogear OTP to conveniently verify user secret key against the TOTP from GAorg.grails.plugins:qrcode
, qrcode Grails plugin to generate the QR code
My question is about the 2 ways to add a new entry in Google Authenticator app: 1. scan QR code (everything ok on my side) 2. manually type the account name along with an alphabetic code (in my 1st screenshot, the code is provided within Google Security Settings)
You can see an explicatory screenshot from GA for Android:
How can I generate and provide such code (starting with fzee
in the 1st screenshot, and named "provided key" in the 2nd one) to the user? I'm sure it's an encoding of the same data string also encoded in the QR code, but I don't know which (not simply Base32
).
ANSWER
Answered 2017-Nov-14 at 01:43The Google Authenticator Setup QR code is generated based on a few things, one of these is the "secret key", so depending on the codebase you are using to build it into your site the "secret key" is normally generated first and that key is then used to generate the QR code.
If you look at this node.js module you can see what I am talking about
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install grails-qrcode
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page