-
-
Notifications
You must be signed in to change notification settings - Fork 964
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add a new admin API to remove a specific 2nd factor credential (#…
- Loading branch information
1 parent
132255e
commit 44556a4
Showing
35 changed files
with
1,014 additions
and
72 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
...le_to_retrieve_it-type=remove_webauthn_passwordless_and_multiple_fido_mfa_type-admin.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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"credentials": { | ||
"webauthn": { | ||
"type": "webauthn", | ||
"identifiers": [], | ||
"config": { | ||
"credentials": [ | ||
{ | ||
"public_key": "cFFFQ0F5WWdBU0ZZSU1KTFFoSnhRUnpobktQVGNQQ1VPRE9teFlEWW8yb2JybTliaHA1bHZTWjNJbGdnWGpoWnZKYVBVcUY5UFhxWnFUZFdZUFI3UitiMm4vV2krSXhLS1hzUzRyVT0=", | ||
"attestation_type": "none", | ||
"authenticator": { | ||
"aaguid": "cmM0QUFqVzh4Z3BraXdzbDhmQlZBdz09", | ||
"sign_count": 0, | ||
"clone_warning": false | ||
}, | ||
"display_name": "test", | ||
"added_at": "2022-12-16T14:11:55Z", | ||
"is_passwordless": true | ||
}, | ||
{ | ||
"public_key": "cFFFQ0F5WWdBU0ZZSU1KTFFoSnhRUnpobktQVGNQQ1VPRE9teFlEWW8yb2JybTliaHA1bHZTWjNJbGdnWGpoWnZKYVBVcUY5UFhxWnFUZFdZUFI3UitiMm4vV2krSXhLS1hzUzRyVT0=", | ||
"attestation_type": "none", | ||
"authenticator": { | ||
"aaguid": "cmM0QUFqVzh4Z3BraXdzbDhmQlZBdz09", | ||
"sign_count": 0, | ||
"clone_warning": false | ||
}, | ||
"display_name": "test", | ||
"added_at": "2022-12-16T14:11:55Z", | ||
"is_passwordless": true | ||
} | ||
], | ||
"user_handle": "RWY1SmlNcE1Sd3V6YXVXcy85SjBnUT09" | ||
}, | ||
"version": 1 | ||
} | ||
}, | ||
"schema_id": "default", | ||
"state": "active", | ||
"traits": {}, | ||
"metadata_public": null, | ||
"metadata_admin": null | ||
} |
43 changes: 43 additions & 0 deletions
43
...e_to_retrieve_it-type=remove_webauthn_passwordless_and_multiple_fido_mfa_type-public.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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"credentials": { | ||
"webauthn": { | ||
"type": "webauthn", | ||
"identifiers": [], | ||
"config": { | ||
"credentials": [ | ||
{ | ||
"public_key": "cFFFQ0F5WWdBU0ZZSU1KTFFoSnhRUnpobktQVGNQQ1VPRE9teFlEWW8yb2JybTliaHA1bHZTWjNJbGdnWGpoWnZKYVBVcUY5UFhxWnFUZFdZUFI3UitiMm4vV2krSXhLS1hzUzRyVT0=", | ||
"attestation_type": "none", | ||
"authenticator": { | ||
"aaguid": "cmM0QUFqVzh4Z3BraXdzbDhmQlZBdz09", | ||
"sign_count": 0, | ||
"clone_warning": false | ||
}, | ||
"display_name": "test", | ||
"added_at": "2022-12-16T14:11:55Z", | ||
"is_passwordless": true | ||
}, | ||
{ | ||
"public_key": "cFFFQ0F5WWdBU0ZZSU1KTFFoSnhRUnpobktQVGNQQ1VPRE9teFlEWW8yb2JybTliaHA1bHZTWjNJbGdnWGpoWnZKYVBVcUY5UFhxWnFUZFdZUFI3UitiMm4vV2krSXhLS1hzUzRyVT0=", | ||
"attestation_type": "none", | ||
"authenticator": { | ||
"aaguid": "cmM0QUFqVzh4Z3BraXdzbDhmQlZBdz09", | ||
"sign_count": 0, | ||
"clone_warning": false | ||
}, | ||
"display_name": "test", | ||
"added_at": "2022-12-16T14:11:55Z", | ||
"is_passwordless": true | ||
} | ||
], | ||
"user_handle": "RWY1SmlNcE1Sd3V6YXVXcy85SjBnUT09" | ||
}, | ||
"version": 1 | ||
} | ||
}, | ||
"schema_id": "default", | ||
"state": "active", | ||
"traits": {}, | ||
"metadata_public": null, | ||
"metadata_admin": null | ||
} |
31 changes: 31 additions & 0 deletions
31
...er_and_no_longer_be_able_to_retrieve_it-type=remove_webauthn_passwordless_type-admin.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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"credentials": { | ||
"webauthn": { | ||
"type": "webauthn", | ||
"identifiers": [], | ||
"config": { | ||
"credentials": [ | ||
{ | ||
"public_key": "pQECAyYgASFYIMJLQhJxQRzhnKPTcPCUODOmxYDYo2obrm9bhp5lvSZ3IlggXjhZvJaPUqF9PXqZqTdWYPR7R+b2n/Wi+IxKKXsS4rU=", | ||
"attestation_type": "none", | ||
"authenticator": { | ||
"aaguid": "rc4AAjW8xgpkiwsl8fBVAw==", | ||
"sign_count": 0, | ||
"clone_warning": false | ||
}, | ||
"display_name": "test", | ||
"added_at": "2022-12-16T14:11:55Z", | ||
"is_passwordless": true | ||
} | ||
], | ||
"user_handle": "Ef5JiMpMRwuzauWs/9J0gQ==" | ||
}, | ||
"version": 1 | ||
} | ||
}, | ||
"schema_id": "default", | ||
"state": "active", | ||
"traits": {}, | ||
"metadata_public": null, | ||
"metadata_admin": null | ||
} |
31 changes: 31 additions & 0 deletions
31
...r_and_no_longer_be_able_to_retrieve_it-type=remove_webauthn_passwordless_type-public.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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"credentials": { | ||
"webauthn": { | ||
"type": "webauthn", | ||
"identifiers": [], | ||
"config": { | ||
"credentials": [ | ||
{ | ||
"public_key": "pQECAyYgASFYIMJLQhJxQRzhnKPTcPCUODOmxYDYo2obrm9bhp5lvSZ3IlggXjhZvJaPUqF9PXqZqTdWYPR7R+b2n/Wi+IxKKXsS4rU=", | ||
"attestation_type": "none", | ||
"authenticator": { | ||
"aaguid": "rc4AAjW8xgpkiwsl8fBVAw==", | ||
"sign_count": 0, | ||
"clone_warning": false | ||
}, | ||
"display_name": "test", | ||
"added_at": "2022-12-16T14:11:55Z", | ||
"is_passwordless": true | ||
} | ||
], | ||
"user_handle": "Ef5JiMpMRwuzauWs/9J0gQ==" | ||
}, | ||
"version": 1 | ||
} | ||
}, | ||
"schema_id": "default", | ||
"state": "active", | ||
"traits": {}, | ||
"metadata_public": null, | ||
"metadata_admin": null | ||
} |
File renamed without changes.
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
6 changes: 3 additions & 3 deletions
6
...rvice/strategy/lookup/credentials_test.go → identity/credentials_lookup_test.go
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
4 changes: 2 additions & 2 deletions
4
selfservice/strategy/totp/credentials.go → identity/credentials_totp.go
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.