-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refact: configure 2-factor authentication when creating account (#154)
* refact: configure 2-factor authentication when creating account (#147) * refact: remove send email, 2fa create account and creating services * refact: big refact * fix: test * fix: import duplicate * refact: remove nginx * fix: remove unused packages * feat: add message in i18n files * fix: auth test * fix: function name * feat: validating 2-factor authentication when logging in * refact: validate secrets by level * fix: remove log * refact: replace folder name * fix: remove code
- Loading branch information
1 parent
3af4b44
commit 1a13a43
Showing
55 changed files
with
947 additions
and
1,527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,8 +67,5 @@ migrate-down: | |
lint: | ||
golangci-lint run ./... | ||
|
||
swag: | ||
swag init -g main.go --output docs | ||
|
||
check: | ||
staticcheck ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
{ | ||
"meta": { | ||
"project_name": "PowerSSO", | ||
"project_url": "http://localhost:3000" | ||
}, | ||
"project_name": "PowerSSO", | ||
"server": { | ||
"version": "1.0.0", | ||
"port": ":5000", | ||
"pprof_port": ":5555", | ||
"mode": "dev", | ||
"jwt_secret_key": "power-sso-secret", | ||
"cookie_name": "jwt-power-sso", | ||
"ssl": false, | ||
"ctx_default_timeout": 12, | ||
|
@@ -20,7 +16,7 @@ | |
"start_grpc": false, | ||
"access_log_directory": "/var/log/powersso/access.log", | ||
"error_log_directory": "/var/log/powersso/error.log", | ||
"permission_base": "github.com/isaqueveras/power-sso", | ||
"permission_base": "github.com/isaqueveras/powersso", | ||
"access_control_allow_origin": "*", | ||
"open_sessions_per_user": 5 | ||
}, | ||
|
@@ -31,30 +27,16 @@ | |
"password": "postgres", | ||
"dbname": "power-sso", | ||
"sslmode": false, | ||
"driver": "pgx", | ||
"max_open_conns": 60, | ||
"max_idle_conns": 30, | ||
"conn_max_life_time": 120, | ||
"conn_max_idle_time": 20, | ||
"timeout": 2 | ||
}, | ||
"logger": { | ||
"development": true, | ||
"disable_caller": false, | ||
"disable_stacktrace": false, | ||
"encoding": "json", | ||
"level": "info" | ||
}, | ||
"mailer": { | ||
"host": "localhost", | ||
"port": 1025, | ||
"email": "[email protected]", | ||
"username": "PowerSSO", | ||
"password": "password", | ||
"tls": false | ||
}, | ||
"user_auth_token": { | ||
"secret_key": "kjnfdjksdbfsdhfbdskjfnamkndkn", | ||
"duration": 2592000 | ||
"secrets_duration": 2592000, | ||
"secrets_tokens": { | ||
"user": "kjnfdjksdbfsdhfbdskjfnamkndkn", | ||
"admin": "oCb9A8T7zHyx8MXBFb1aEouAXnBg2", | ||
"integration": "krIhDsgYFY3ByJLony15bDSzBAsl5" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.