Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated CFC to use Apache Commons #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

andyj
Copy link

@andyj andyj commented Nov 8, 2016

Hi

I've update the code base to now use the Apache Commons Codec and removed the needs to have a separate .JS file to create the QR code

Andy Jarrett added 5 commits November 8, 2016 00:22
…odec to implement Base32 encoding/decoding. Also Added new function getOTPQRURL() which return the a QR code URL you can put straight in to an image tag
@@ -72,6 +72,11 @@ component output="false" {
return 'otpauth://totp/#arguments.email#?secret=#arguments.key#';
}

public string function getOTPQRURL(required string OTPURL){
local.qrURL = "https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=200x200&chld=M|0&cht=qr&chl=";
Copy link

@displague displague Nov 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like a bad idea to send your secret tokens to Google. They seem nice but I assume this grants thousands of Google employees the ability to grep your referral domain from their logs and get a very small list of possible secrets for any TOTP enabled account on your domain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants