mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-25 00:06:08 +00:00
parent
866466d158
commit
0c7b41747e
1 changed files with 13 additions and 1 deletions
|
@ -25,7 +25,11 @@ public class GoogleAuthInfo {
|
|||
builder.scheme("otpauth");
|
||||
|
||||
if (_info instanceof TotpInfo) {
|
||||
builder.authority("totp");
|
||||
if (_info instanceof SteamInfo) {
|
||||
builder.authority("steam");
|
||||
} else {
|
||||
builder.authority("totp");
|
||||
}
|
||||
builder.appendQueryParameter("period", Integer.toString(((TotpInfo)_info).getPeriod()));
|
||||
} else if (_info instanceof HotpInfo) {
|
||||
builder.authority("hotp");
|
||||
|
@ -89,6 +93,14 @@ public class GoogleAuthInfo {
|
|||
}
|
||||
info = totpInfo;
|
||||
break;
|
||||
case "steam":
|
||||
SteamInfo steamInfo = new SteamInfo(secret);
|
||||
period = uri.getQueryParameter("period");
|
||||
if (period != null) {
|
||||
steamInfo.setPeriod(Integer.parseInt(period));
|
||||
}
|
||||
info = steamInfo;
|
||||
break;
|
||||
case "hotp":
|
||||
HotpInfo hotpInfo = new HotpInfo(secret);
|
||||
String counter = uri.getQueryParameter("counter");
|
||||
|
|
Loading…
Add table
Reference in a new issue