You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Add `auth` to the `ckan.plugins` setting in your CKAN
43
44
config file (by default the config file is located at
44
45
`/etc/ckan/default/ckan.ini`).
45
46
46
47
4. Apply database migrations:
47
-
48
-
ckan db pending-migrations --apply
49
-
48
+
```
49
+
ckan db upgrade
50
+
```
50
51
5. Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:
51
-
52
-
sudo service apache2 reload
53
-
52
+
```
53
+
sudo service apache2 reload
54
+
```
54
55
55
56
## Config settings
56
57
57
-
There are several configuration settings available for this extension:
58
-
59
-
- key: ckanext.auth.2fa_enabled
60
-
default: true
61
-
type: bool
62
-
description: Enable two-factor authentication for users
63
-
64
-
- key: ckanext.auth.2fa_method
65
-
default: email
66
-
description: The method to use for two-factor authentication. Options are email or authenticator.
67
-
68
-
- key: ckanext.auth.2fa_email_interval
69
-
default: 600
70
-
type: int
71
-
description: TTL for the authentication code sent via email in seconds. Default is 10 minutes.
72
-
73
-
- key: ckanext.auth.2fa_login_timeout
74
-
default: 900
75
-
type: int
76
-
description: Login timeout in seconds after N failed attempted. Default is 15 minutes.
77
-
78
-
- key: ckanext.auth.2fa_login_max_attempts
79
-
default: 10
80
-
type: int
81
-
description: Number of failed login attempts before the login timeout is triggered.
82
-
83
-
- key: ckanext.auth.2fa_dev_mode
84
-
default: false
85
-
type: bool
86
-
description: Enables Dev Mode. When enabled, it shows the actual code next to the code input. This is useful when your environment does not have SMTP configured.
58
+
There are several configuration settings available for this extension. Check the config [declaration file](./ckanext/auth/config_declaration.yaml).
87
59
88
60
If you have the [ckanext-admin-panel](https://github.com/DataShades/ckanext-admin-panel) installed, the configuration settings will be available in the admin panel too.
89
61
@@ -94,9 +66,9 @@ If you have the [ckanext-admin-panel](https://github.com/DataShades/ckanext-admi
0 commit comments