コード例 #1
0
ファイル: totp.py プロジェクト: EasonMax007/pyotp
 def provisioning_uri(self, name, issuer_name=None):
     """
     Returns the provisioning URI for the OTP
     This can then be encoded in a QR Code and used
     to provision the Google Authenticator app
     @param [String] name of the account
     @return [String] provisioning uri
     """
     return utils.build_uri(self.secret, name, issuer_name=issuer_name)
コード例 #2
0
 def provisioning_uri(self, name, issuer_name=None):
     """
     Returns the provisioning URI for the OTP
     This can then be encoded in a QR Code and used
     to provision the Google Authenticator app
     @param [String] name of the account
     @return [String] provisioning uri
     """
     return utils.build_uri(self.secret, name, issuer_name=issuer_name)
コード例 #3
0
ファイル: hotp.py プロジェクト: scupython/pyotp
 def provisioning_uri(self, name, initial_count=0, issuer_name=None):
     """
     Returns the provisioning URI for the OTP
     This can then be encoded in a QR Code and used
     to provision the Google Authenticator app
     @param [String] name of the account
     @param [Integer] initial_count starting counter value, defaults to 0
     @param [String] the name of the OTP issuer; this will be the
         organization title of the OTP entry in Authenticator
     @return [String] provisioning uri
     """
     return utils.build_uri(
         self.secret,
         name,
         initial_count=initial_count,
         issuer_name=issuer_name,
     )
コード例 #4
0
 def provisioning_uri(self, name, initial_count=0, issuer_name=None):
     """
     Returns the provisioning URI for the OTP
     This can then be encoded in a QR Code and used
     to provision the Google Authenticator app
     @param [String] name of the account
     @param [Integer] initial_count starting counter value, defaults to 0
     @param [String] the name of the OTP issuer; this will be the
         organization title of the OTP entry in Authenticator
     @return [String] provisioning uri
     """
     return utils.build_uri(
         self.secret,
         name,
         initial_count=initial_count,
         issuer_name=issuer_name,
     )