Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
This plugin provides behavior and configuration attaches it | ||
to user component on beforeLogin` event. | ||
And then the behavior validates IPs and TOTP on every login. | ||
|
||
To use this plugin you need to provide: | ||
|
||
- `allowed_ips` readable and writable property in your **user** component for allowed IPs functionality | ||
- `totp_secret` readable and writable property in your **user** component for TOTP functionality | ||
|
||
IPs and TOTP functions are independent and you can provide just one of properties to have only | ||
corresponding functionality. |