-
Notifications
You must be signed in to change notification settings - Fork 968
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(identity): add versioning to credentials
- Loading branch information
Showing
24 changed files
with
51 additions
and
2 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
14 changes: 14 additions & 0 deletions
14
persistence/sql/migratest/fixtures/identity/5ff66179-c240-4703-b0d8-494592cefff5.json
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,5 +1,19 @@ | ||
{ | ||
"id": "5ff66179-c240-4703-b0d8-494592cefff5", | ||
"credentials": { | ||
"password": { | ||
"type": "password", | ||
"identifiers": [ | ||
"[email protected]" | ||
], | ||
"config": { | ||
"hashed_password": "$argon2id$v=19$m=131072,t=2,p=1$lQFPaKxXqPL56/mU7vRi4w$6aldHyBnURt8sP8+xu41Ng" | ||
}, | ||
"version": 0, | ||
"created_at": "2013-10-07T08:23:19Z", | ||
"updated_at": "2013-10-07T08:23:19Z" | ||
} | ||
}, | ||
"schema_id": "default", | ||
"schema_url": "https://www.ory.sh/schemas/ZGVmYXVsdA", | ||
"state": "active", | ||
|
14 changes: 14 additions & 0 deletions
14
persistence/sql/migratest/fixtures/identity/a251ebc2-880c-4f76-a8f3-38e6940eab0e.json
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,5 +1,19 @@ | ||
{ | ||
"id": "a251ebc2-880c-4f76-a8f3-38e6940eab0e", | ||
"credentials": { | ||
"password": { | ||
"type": "password", | ||
"identifiers": [ | ||
"[email protected]" | ||
], | ||
"config": { | ||
"hashed_password": "$argon2id$v=19$m=131072,t=2,p=1$lQFPaKxXqPL56/mU7vRi4w$6aldHyBnURt8sP8+xu41Ng" | ||
}, | ||
"version": 0, | ||
"created_at": "2013-10-07T08:23:19Z", | ||
"updated_at": "2013-10-07T08:23:19Z" | ||
} | ||
}, | ||
"schema_id": "default", | ||
"schema_url": "https://www.ory.sh/schemas/ZGVmYXVsdA", | ||
"state": "active", | ||
|
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 @@ | ||
INSERT INTO identity_credentials (id, config, identity_credential_type_id, identity_id, created_at, updated_at, version) VALUES ('4cefc264-4291-4abc-8f26-cc0217874f14', '{"hashed_password":"$argon2id$v=19$m=131072,t=2,p=1$lQFPaKxXqPL56/mU7vRi4w$6aldHyBnURt8sP8+xu41Ng"}', '22bff9ae-f5aa-45d7-803b-97ec0b4e7b32', '5ff66179-c240-4703-b0d8-494592cefff5', '2013-10-07 08:23:19', '2013-10-07 08:23:19', 0); |
Empty file.
1 change: 1 addition & 0 deletions
1
...nce/sql/migrations/sql/20220301102701000000_identity_credentials_version.cockroach.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 @@ | ||
ALTER TABLE identity_credentials ADD version INT NOT NULL DEFAULT '0'; |
Empty file.
1 change: 1 addition & 0 deletions
1
...istence/sql/migrations/sql/20220301102701000000_identity_credentials_version.mysql.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 @@ | ||
ALTER TABLE identity_credentials ADD version INT NOT NULL DEFAULT '0'; |
Empty file.
1 change: 1 addition & 0 deletions
1
...ence/sql/migrations/sql/20220301102701000000_identity_credentials_version.postgres.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 @@ | ||
ALTER TABLE identity_credentials ADD version INT NOT NULL DEFAULT '0'; |
Empty file.
1 change: 1 addition & 0 deletions
1
...tence/sql/migrations/sql/20220301102701000000_identity_credentials_version.sqlite3.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 @@ | ||
ALTER TABLE identity_credentials ADD version INT NOT NULL DEFAULT '0'; |
1 change: 1 addition & 0 deletions
1
...e/sql/migrations/sql/20220301102701000001_identity_credentials_version.cockroach.down.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 @@ | ||
ALTER TABLE identity_credentials DROP COLUMN version; |
Empty file.
1 change: 1 addition & 0 deletions
1
...tence/sql/migrations/sql/20220301102701000001_identity_credentials_version.mysql.down.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 @@ | ||
ALTER TABLE identity_credentials DROP COLUMN version; |
Empty file.
1 change: 1 addition & 0 deletions
1
...ce/sql/migrations/sql/20220301102701000001_identity_credentials_version.postgres.down.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 @@ | ||
ALTER TABLE identity_credentials DROP COLUMN version; |
Empty file.
1 change: 1 addition & 0 deletions
1
...nce/sql/migrations/sql/20220301102701000001_identity_credentials_version.sqlite3.down.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 @@ | ||
ALTER TABLE identity_credentials DROP COLUMN version; |
Empty file.
1 change: 1 addition & 0 deletions
1
persistence/sql/migrations/templates/20220301102701_identity_credentials_version.down.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 @@ | ||
ALTER TABLE identity_credentials DROP COLUMN version; |
1 change: 1 addition & 0 deletions
1
persistence/sql/migrations/templates/20220301102701_identity_credentials_version.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 @@ | ||
ALTER TABLE identity_credentials ADD version INT NOT NULL DEFAULT '0'; |
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