-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3592 from quexten/feature/login-with-device
Implement "login with device"
- Loading branch information
Showing
20 changed files
with
842 additions
and
8 deletions.
There are no files selected for viewing
Empty file.
19 changes: 19 additions & 0 deletions
19
migrations/mysql/2023-06-17-200424_create_auth_requests_table/up.sql
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,19 @@ | ||
CREATE TABLE auth_requests ( | ||
uuid CHAR(36) NOT NULL PRIMARY KEY, | ||
user_uuid CHAR(36) NOT NULL, | ||
organization_uuid CHAR(36), | ||
request_device_identifier CHAR(36) NOT NULL, | ||
device_type INTEGER NOT NULL, | ||
request_ip TEXT NOT NULL, | ||
response_device_id CHAR(36), | ||
access_code TEXT NOT NULL, | ||
public_key TEXT NOT NULL, | ||
enc_key TEXT NOT NULL, | ||
master_password_hash TEXT NOT NULL, | ||
approved BOOLEAN, | ||
creation_date DATETIME NOT NULL, | ||
response_date DATETIME, | ||
authentication_date DATETIME, | ||
FOREIGN KEY(user_uuid) REFERENCES users(uuid), | ||
FOREIGN KEY(organization_uuid) REFERENCES organizations(uuid) | ||
); |
Empty file.
19 changes: 19 additions & 0 deletions
19
migrations/postgresql/2023-06-17-200424_create_auth_requests_table/up.sql
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,19 @@ | ||
CREATE TABLE auth_requests ( | ||
uuid CHAR(36) NOT NULL PRIMARY KEY, | ||
user_uuid CHAR(36) NOT NULL, | ||
organization_uuid CHAR(36), | ||
request_device_identifier CHAR(36) NOT NULL, | ||
device_type INTEGER NOT NULL, | ||
request_ip TEXT NOT NULL, | ||
response_device_id CHAR(36), | ||
access_code TEXT NOT NULL, | ||
public_key TEXT NOT NULL, | ||
enc_key TEXT NOT NULL, | ||
master_password_hash TEXT NOT NULL, | ||
approved BOOLEAN, | ||
creation_date TIMESTAMP NOT NULL, | ||
response_date TIMESTAMP, | ||
authentication_date TIMESTAMP, | ||
FOREIGN KEY(user_uuid) REFERENCES users(uuid), | ||
FOREIGN KEY(organization_uuid) REFERENCES organizations(uuid) | ||
); |
Empty file.
19 changes: 19 additions & 0 deletions
19
migrations/sqlite/2023-06-17-200424_create_auth_requests_table/up.sql
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,19 @@ | ||
CREATE TABLE auth_requests ( | ||
uuid TEXT NOT NULL PRIMARY KEY, | ||
user_uuid TEXT NOT NULL, | ||
organization_uuid TEXT, | ||
request_device_identifier TEXT NOT NULL, | ||
device_type INTEGER NOT NULL, | ||
request_ip TEXT NOT NULL, | ||
response_device_id TEXT, | ||
access_code TEXT NOT NULL, | ||
public_key TEXT NOT NULL, | ||
enc_key TEXT NOT NULL, | ||
master_password_hash TEXT NOT NULL, | ||
approved BOOLEAN, | ||
creation_date DATETIME NOT NULL, | ||
response_date DATETIME, | ||
authentication_date DATETIME, | ||
FOREIGN KEY(user_uuid) REFERENCES users(uuid), | ||
FOREIGN KEY(organization_uuid) REFERENCES organizations(uuid) | ||
); |
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
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
Oops, something went wrong.