forked from casdoor/casdoor-authenticator
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
732 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
syntax = "proto3"; | ||
|
||
package google_auth; | ||
|
||
message MigrationPayload { | ||
enum Algorithm { | ||
ALGORITHM_UNSPECIFIED = 0; | ||
SHA1 = 1; | ||
SHA256 = 2; | ||
SHA512 = 3; | ||
MD5 = 4; | ||
} | ||
|
||
enum DigitCount { | ||
DIGIT_COUNT_UNSPECIFIED = 0; | ||
SIX = 1; | ||
EIGHT = 2; | ||
SEVEN = 3; | ||
} | ||
|
||
enum OtpType { | ||
OTP_TYPE_UNSPECIFIED = 0; | ||
HOTP = 1; | ||
TOTP = 2; | ||
} | ||
|
||
message OtpParameters { | ||
bytes secret = 1; | ||
string name = 2; | ||
string issuer = 3; | ||
Algorithm algorithm = 4; | ||
DigitCount digits = 5; | ||
OtpType type = 6; | ||
int64 counter = 7; | ||
string unique_id = 8; | ||
} | ||
|
||
repeated OtpParameters otp_parameters = 1; | ||
int32 version = 2; | ||
int32 batch_size = 3; | ||
int32 batch_index = 4; | ||
int32 batch_id = 5; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.