0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

KeyURIFormatに対するGoogleAuthenticatorとIIJ Smartkeyの挙動

Last updated at Posted at 2020-10-16
  • Google Authenticatorは、algorithm, digits, periodは無視される。
  • IIJ Smartkeyは対応。

デフォルト値

https://github.com/google/google-authenticator/wiki/Key-Uri-Format
https://www1.auth.iij.jp/smartkey/uri_v2.html

parameter Google Authenticator IIJ Smartkey
algorithm SHA1 SHA1
digits 6 6
period 30 30

Google Authenticator をインストールしていれば、otpauthリンクがブラウザから読み込める

テスト用に以下を載せてみる。

Google Authenticator Version IIJ Smartkey
5.1.0 2.1.4

※追記:Qiitaではotpauthリンクはエスケープされてしまってダメでした。
CodeSandBoxに作りました。

リンクからすべて生成されるが、おそらくすべて、同じ値で、同じ更新間隔になるだろう。

結果

アプリ 表示値の違い
Google Authenticator すべて一致
IIJ Smartkey すべて不一致
GoogleAuthenticatorは仕様どおり、オプション群は効いておらず、結果はいずれもやはり同じでした。
IIJ Smartkeyは、仕様通り、オプション群はすべて効いており、3つのリンクそれぞれから生成される値はすべて異なりました。

※Google Authenticatorはキャプチャが禁止されているようで取れず(当たり前)。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?