Skip to primary content
Skip to secondary content

Down Home Country Coding With Scott Selikoff and Jeanne Boyarsky

Java/J2EE Software Development and Technology Discussion Blog

Down Home Country Coding With Scott Selikoff and Jeanne Boyarsky

Main menu

  • Home
  • Java 21
    • Java OCP 21 Certified Professional Study Guide
    • Guide: Using our OCP 21 Book for the Foundations Exam
    • Guide: Using our Java 17 Practice Test Book for the Java 21 Exam
  • Java 17
    • Java OCP 17 Developer Complete Study Guide
    • Java OCP 17 Practice Tests
  • Java 11
    • The 1Z0-819 Exam
    • Java OCP 11 Developer Complete Study Guide
    • Java OCP 11 Practice Tests
    • Java OCP 11 Programmer I Study Guide
    • Java OCP 11 Programmer II Study Guide
  • Java 8
    • Java OCA 8 Programmer I Study Guide
    • Java OCP 8 Programmer II Study Guide
    • OCA / OCP Java SE 8 Programmer Certification Kit
    • Java OCA/OCP 8 Programmer Practice Tests
    • Java Foundations Exam
  • About Scott
  • About Jeanne

Tag Archives: login

github and two factor authentication

Posted on April 12, 2014 by Jeanne Boyarsky
2

Two years ago, I set up two factor authentication for my gmail account.  Last year, github announced the ability of two factor.  I hadn’t noticed at the time.  Today, I logged on to change my password since github was in the list of applications affected by Heartbleed and saw the option.

How it works

Github gives you a choice of second factor

  • Google Authenticator mobile application (I already had the iPad app installed for gmail so this was convenient)
  • text to mobile phone (I have this set a secondary)
  • written down one time use passwords (kept as tertiary)

Linking the mobile app to github

  1. Open the mobile app
  2. Click “edit” pencil
  3. Click “+” to add an account.
  4. On your computer, go to your github account settings and click to enable two factory.  You will be given a QR code to scan which automatically links the two.  There is also  the option of typing in a long text code.

That’s it.  Now Google Authenticator generates two numeric codes.  One for gmail and one for github.

Actually using two factor

Unlike gmail, you probably don’t usually sign on two github using the browser.  Let’s look at three ways of signing in.

Through the browser

  1. I immediately logged out in the browser.
  2. Enter my password to sign back in
  3. Enter my two factor code

Through the github Mac app

  1. Github > Github preferences
  2. Click sign out
  3. Enter my username/password to sign back in
  4. Enter my two factor code

Through the command line

  1. On the account settings page, create a new personal token
  2. Leave the default privileges checked.  (It’s great there is this much control)
  3. git credential-osxkeychain erase
  4. git pull   (or any other operation that requires a network call to github)
  5. Enter your user id
  6. Enter your new generated token (not your password)

Current apps

As you might expect, the account settings page shows which apps have access.  I saw “GitHub for Mac” and “GitHub for Windows” on there.  My first thought was “I don’t use Windows.”  Then I remembered that I use git to communicate between my Mac and Windows VM.

Github references

  • Main two factor help page.
  • How to provide your two factor token
  • How to store your second factor for command line use

Web service

I also had to update my web service code to call the two factor version.

Action items

If you haven’t already, please change your passwords for sites in this list or enabling two factor will protect you in the future.  Also change your passwords for any sites which use the same password as one of those in the list.

Share this:

  • Click to email a link to a friend (Opens in new window) Email
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to print (Opens in new window) Print
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on X (Opens in new window) X
Posted in Web | Tagged 2-factor, github, gmail, login, security | 2 Replies

Google and 2 factor

Posted on April 15, 2012 by Jeanne Boyarsky
6

Don’t want someone else sending e-mail as you? Don’t want someone reading your e-mail? Don’t want your email hacked? Then why do you only protect you e-mail with a flimsy (or not so flimsy) password?

It’s scary what someone could do with your e-mail. Luckily, Google has been offering 2-factor authentication for over a year.

How it works

When you turn on 2 factor, Google asks you what options you’d like to turn on as a secondary authentication channel.  I use the following (in order of preference):

  • Google Authenticator iPad application
  • phone call to mobile phone
  • text to mobile phone
  • written down one time use passwords

Normal inconveniences

Security is more work than being non-secure.  That’s why my password isn’t “jeanne”.  It’s one that I have to actually remember.  When I first turned this on, there was less than an hour of initial inconvenience.  Which consisted of:

  • reading about 2 factor
  • turning on 2 factor
  • entering the second code for the three devices on which I regularly use gmail
  • creating an “one application only” password for the apps that use google sign on but don’t support two factor
How to turn on 2 factor
Since the Google blog entry, gmail has a new interface and of course the 2 factor settings have moved.  To get to them now, go to your main Google account settings page and choose 2 factor.
A funny story
A few months ago, I moved and didn’t have the internet at home for over a week.  I was using my wifi iPad for the internet for the most part.  One day I needed to do something that required a real browser.   My employer bans gmail so I went to the library “to check my e-mail.”  I signed up for a computer spot at the library using my library card.  I logon to gmail and get prompted for a second factor.  Dang.  I didn’t bring my iPad or one time use passwords to the library and there is no cell phone reception to get the code the other ways. And if I get up, someone could take my computer spot.  It worked out ok, I asked someone to watch my spot and ran outside to get reception and get the code.  It’s more secure though!
Overall

I’m happy with 2 factor.  It’s such a minor inconvenience to have it on that it is more than worth the extra security on my account.

Share this:

  • Click to email a link to a friend (Opens in new window) Email
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to print (Opens in new window) Print
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on X (Opens in new window) X
Posted in Technology | Tagged 2-factor, gmail, login, security | 6 Replies
May 2025
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Apr    

Topics

  • Accessibility (8)
  • AI (1)
  • Android (3)
  • Announcements (6)
  • Apple Mac (26)
  • AWS (12)
  • Blog (8)
  • Conferences (356)
  • Database (25)
  • Development Process (75)
  • FIRST Robotics (26)
  • Flash/Flex (9)
  • Google Chrome (11)
  • Groovy (3)
  • GWT (5)
  • IntelliJ (2)
  • Java Certification (75)
  • Java/Java EE (318)
  • JavaRanch (33)
  • JDBC (19)
  • Jenkins (6)
  • JUnit 5 (10)
  • OCA Book (31)
  • OCP Book (34)
  • OnlineEd (5)
  • PowerPoint (2)
  • Practice Exam Book (5)
  • Python (1)
  • Reviews (8)
  • Soft Skills (5)
  • SonarQube (2)
  • Technology (108)
  • Toastmasters (28)
  • Uncategorized (2)
  • Web (21)
  • WTFs (9)

Recent Posts

  • PASSED! Jeanne’s Experience Taking the Oracle AI Vector Search Certified Professional Certification
  • Oracle’s new certification exam engine
  • PASSED! Jeanne’s Experience Taking the SAFe Practitioner exam
  • [javaone 2025] know your java
  • [javaone 2025] Engineering a Modern Java Platform: Making Kubernetes Work for Java Teams
  • [javaone 2025] Fallacies of Software Development
  • [javaone 2025] A New Model for Java Object Initialization
  • [javaone 2025] sneak peak at the stable values API
  • [javaone 2025] Jump-Start Your Data Science Learning with Jupyter Notebooks and Java
  • [javaone 2025] how netflix uses java 2025 edition

Feeds

RSS feed RSS - Posts

Proudly powered by WordPress