mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-06-18 15:15:25 +00:00
Add support for importing from the new Google Authenticator export QR codes
This commit is contained in:
parent
6b650e777f
commit
56bde0e19b
9 changed files with 234 additions and 14 deletions
33
app/src/main/proto/google_auth.proto
Normal file
33
app/src/main/proto/google_auth.proto
Normal file
|
@ -0,0 +1,33 @@
|
|||
syntax = "proto3";
|
||||
|
||||
option java_package = "com.beemdevelopment.aegis";
|
||||
option java_outer_classname = "GoogleAuthProtos";
|
||||
|
||||
message MigrationPayload {
|
||||
enum Algorithm {
|
||||
ALGO_INVALID = 0;
|
||||
ALGO_SHA1 = 1;
|
||||
}
|
||||
|
||||
enum OtpType {
|
||||
OTP_INVALID = 0;
|
||||
OTP_HOTP = 1;
|
||||
OTP_TOTP = 2;
|
||||
}
|
||||
|
||||
message OtpParameters {
|
||||
bytes secret = 1;
|
||||
string name = 2;
|
||||
string issuer = 3;
|
||||
Algorithm algorithm = 4;
|
||||
int32 digits = 5;
|
||||
OtpType type = 6;
|
||||
int64 counter = 7;
|
||||
}
|
||||
|
||||
repeated OtpParameters otp_parameters = 1;
|
||||
int32 version = 2;
|
||||
int32 batch_size = 3;
|
||||
int32 batch_index = 4;
|
||||
int32 batch_id = 5;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue