diff options
| author | Shulhan <ms@kilabit.info> | 2024-06-22 16:35:47 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-06-22 17:21:56 +0700 |
| commit | dbe4f9722bbd63f685b36606abbfd97cbf1dfb10 (patch) | |
| tree | b1eb61d3f75aa60f65541ba51408d3d4a708b48d /provider_aegis.go | |
| parent | 4eaf76a096a0ba8ba5e687ede23c1dafd9064358 (diff) | |
| download | gotp-dbe4f9722bbd63f685b36606abbfd97cbf1dfb10.tar.xz | |
all: implement command "export"
The "export" command export all issuers to file or standard output,
$ gotp export <FORMAT> [FILE]
List of known supported FORMAT is: uri.
If FILE is not defined it will print to standard output.
The list of exported issuers are printed in order of its label.
Diffstat (limited to 'provider_aegis.go')
| -rw-r--r-- | provider_aegis.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/provider_aegis.go b/provider_aegis.go index bdc71ec..2429b86 100644 --- a/provider_aegis.go +++ b/provider_aegis.go @@ -11,6 +11,13 @@ import ( "strconv" ) +// parseProviderAegis parse the [Aegis Authenticator] exported file in the +// URI format. +// The URI scheme has the following format, +// +// otpauth://totp/<LABEL>?period=&digits=&algorithm=&secret=&issuer= +// +// [Aegis Authenticator]: https://getaegis.app/ func parseProviderAegis(file string) (issuers []*Issuer, err error) { var ( logp = `parseProviderAegis` |
