Skip to content

Commit

Permalink
DIV-8488 | adding config needed for verify MOISP API
Browse files Browse the repository at this point in the history
  • Loading branch information
samarthgr committed Jun 20, 2022
1 parent 316d9b9 commit 109bb4d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions backend/registration_api/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
var Config = struct {
Auth struct {
PublicKey string `env:"AUTH_PUBLIC_KEY"`
PrivateKey string `env:"AUTH_PRIVATE_KEY"`
PrivateKey string `env:"AUTH_PRIVATE_KEY" yaml:"privateKey"`
TTLForOtp int `yaml:"ttlforotpinminutes"`
MAXOtpVerifyAttempts int64 `yaml:"maxotpverifyattempts"`
OTPLength int `yaml:"otp_length" env:"OTP_LENGTH" default:"6"`
Expand Down Expand Up @@ -54,12 +54,13 @@ var Config = struct {
Mosip struct {
ClientId string `env:"MOSIP_CLIENT_ID"`
ClientSecret string `env:"MOSIP_CLIENT_SECRET"`
AuthHeader string `env:"MOSIP_AUTH_TOKEN"`
OTPUrl string `env:"MOSIP_OTP_URL"`
AuthUrl string `env:"MOSIP_AUTH_URL"`
PrivateKey string `env:"MOSIP_PRIVATE_KEY"`
PublicKey string `env:"MOSIP_PUBLIC_KEY"`
IDACertKey string `env:"MOSIP_IDA_CERT_KEY"`
AuthHeader string `env:"MOSIP_AUTH_TOKEN" yaml:"AUTH_TOKEN"`
OTPUrl string `env:"MOSIP_OTP_URL" yaml:"OTP_URL"`
AuthUrl string `env:"MOSIP_AUTH_URL" yaml:"AUTH_URL"`
KycUrl string `env:"MOSIP_KYC_URL" yaml:"KYC_URL"`
PrivateKey string `env:"MOSIP_PRIVATE_KEY" yaml:"PRIVATE_KEY"`
PublicKey string `env:"MOSIP_PUBLIC_KEY" yaml:"PUBLIC_KEY"`
IDACertKey string `env:"MOSIP_IDA_CERT_KEY" yaml:"IDA_CERT_KEY"`
}
LogLevel string `env:"LOG_LEVEL" yaml:"log_level" default:"info"`
}{}
Expand Down

0 comments on commit 109bb4d

Please sign in to comment.