Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refact: configure 2-factor authentication when creating account #154

Merged
merged 2 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,5 @@ migrate-down:
lint:
golangci-lint run ./...

swag:
swag init -g main.go --output docs

check:
staticcheck ./...
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,12 @@ $ make dev
# Run the migrations
$ make migrate-up

# Generate documentation
$ make swag

# Run the application in development mode
$ go run main.go
```

```bash
- The backend will open on the port:5000 # access http://localhost:5000
- The mailcatcher will open on the port:1080 # access http://localhost:1080
- The documentation will open on the port:5000: # access http://localhost:5000/swagger/index.html
```
## 😯 How to contribute to the project

Expand Down
32 changes: 7 additions & 25 deletions app.json
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,
Expand All @@ -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
},
Expand All @@ -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"
}
}
206 changes: 0 additions & 206 deletions application/auth/auth_business.go

This file was deleted.

Loading