mirror of
https://gitlab.gnome.org/World/Authenticator.git
synced 2025-03-04 08:44:40 +01:00
tools/fetcher: Only fetch tokens
This commit is contained in:
parent
7d2b958082
commit
42011356d5
1 changed files with 7 additions and 4 deletions
|
@ -24,14 +24,17 @@ async fn main() -> oo7::Result<()> {
|
|||
.await?;
|
||||
|
||||
let secret = items[0].secret().await?;
|
||||
let keyring = oo7::portal::Keyring::load(keyring_path, &secret)
|
||||
.await?;
|
||||
|
||||
let keyring = oo7::portal::Keyring::load(keyring_path, &secret).await?;
|
||||
|
||||
let keyring_items = keyring.items().await?;
|
||||
for item in keyring_items.iter() {
|
||||
let attributes = item.attributes();
|
||||
let secret = item.secret();
|
||||
println!("Found a secret: \nAttributes: {:#?}\nSecret: {:#?}", attributes, String::from_utf8_lossy(&secret));
|
||||
println!(
|
||||
"Found a secret: \nAttributes: {:#?}\nSecret: {:#?}",
|
||||
attributes,
|
||||
String::from_utf8_lossy(&secret)
|
||||
);
|
||||
println!("################################################");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue