Authenticator API.com

An API for Google Authenticator

Pair Validate

Demo code

To use Google Authenticator as a two-factor authentication method, you must first pair with the user's Google Authenticator App, by displaying a QR code to them. This QR code is generated using a secret code that only you know. When the user logs in, they must enter the code displayed on their authenticator app, which you validate against the secret code used earlier.

You can use the web service to pair, or call "https://www.authenticatorApi.com/pair.aspx" with the following parameters:

  • AppName - Your application name, something brief, but recognizable
  • AppInfo - Typically the user's name
  • SecretCode - A secret code that only you know

Example:
https://www.authenticatorApi.com/pair.aspx?AppName=MyApp&AppInfo=John&SecretCode=12345678BXYT

You can use the web service to validate a pin, or call "https://www.authenticatorApi.com/Validate.aspx" with the following parameters:

  • Pin - The user's pin
  • SecretCode - The secret code used using Pairing

Example:
https://www.authenticatorApi.com/Validate.aspx?Pin=123456&SecretCode=12345678BXYT