Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kffl/terraform-provider-totp
Terraform utility provider for generating Time-Based One-Time Passwords (TOTPs) :alarm_clock::key:
https://github.com/kffl/terraform-provider-totp
authenticator otp terraform terraform-provider totp twofactorauth
Last synced: 24 days ago
JSON representation
Terraform utility provider for generating Time-Based One-Time Passwords (TOTPs) :alarm_clock::key:
- Host: GitHub
- URL: https://github.com/kffl/terraform-provider-totp
- Owner: kffl
- License: mpl-2.0
- Created: 2021-12-06T17:37:24.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-15T18:59:45.000Z (over 1 year ago)
- Last Synced: 2024-06-20T22:34:32.254Z (5 months ago)
- Topics: authenticator, otp, terraform, terraform-provider, totp, twofactorauth
- Language: Go
- Homepage: https://registry.terraform.io/providers/kffl/totp/latest
- Size: 135 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform TOTP Provider
The TOTP provider is a utility provider, which allows for generating Time-Based One-Time Passwords (TOTP) following the RFC 6238 standard implemented by mobile apps such as Google Authenticator, Microsoft Authenticator or FreeOTP.
## Example Usage
```hcl
data "totp" "my_totp" {
secret = var.totp_secret# optionally specify the algorithm, period and the number of digits
algorithm = "SHA1"
period = 30
digits = 6
}
```The generated TOTP is exposed as `passcode` attribute (i.e. `data.totp.my_totp.passcode`). Check the `examples` folder for additional usage examples.