This repository has been archived by the owner on Aug 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
bc51e6e
commit 793890c
Showing
5 changed files
with
66 additions
and
3 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
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,32 @@ | ||
## Delete [/api/pubkeys/{login}/{key_name}] | ||
|
||
### Delete a key for a user [DELETE] | ||
|
||
Removes a public key for a specified user. | ||
`key_name` is the comment placed at the end of the public key, usually | ||
an email address. | ||
|
||
--- | ||
|
||
:[conjur_auth_header_table](partials/conjur_auth_header_table.md) | ||
|
||
**Request Body** | ||
|
||
The public key to add should be the entire request body. | ||
|
||
**Response** | ||
|
||
|Code|Description| | ||
|----|-----------| | ||
|204|Public key deleted for user| | ||
|403|Permission denied| | ||
|404|User or key not found| | ||
|
||
+ Parameters | ||
+ login: alice (string) - The user's login name | ||
+ key_name: [email protected] (string) - Comment at end of SSH key to remove | ||
|
||
+ Request | ||
:[conjur_auth_header_code](partials/conjur_auth_header_code.md) | ||
|
||
+ Response 204 |
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,28 @@ | ||
## Show [/api/pubkeys/{login}/] | ||
|
||
### Show keys for a user [GET] | ||
|
||
Lists all public keys uploaded for a specific user. | ||
|
||
--- | ||
|
||
:[conjur_auth_header_table](partials/conjur_auth_header_table.md) | ||
|
||
**Response** | ||
|
||
|Code|Description| | ||
|----|-----------| | ||
|200|Public key list returned| | ||
|403|Permission denied| | ||
|
||
+ Parameters | ||
+ login: alice (string) - The user's login name | ||
|
||
+ Request | ||
:[conjur_auth_header_code](partials/conjur_auth_header_code.md) | ||
|
||
+ Response 200 (text/html;charset=utf-8) | ||
|
||
``` | ||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFDhYPIMHAqlQghhdmEa98UrfK9HBX8AaW4aSj5sVwigy7wFMs9yjPfK/mGOV5T5g5TuSe8EQfRfX4Mp6yv40ta4ETAJti7cjoh8KwkxnKPUQmhkgWmTJRfwUwYq12yzmqFp7nZ6JNfng39TvD+L6McpFgC+O7O3IeGBHSz8PB6QE7TbvICSbOPU43d1MQpsvtbgIAM6rTC44JAPor9YoHSne1dsaNCsu4xFUXROJpD2V6eSRHw8tpN6vzxgym5ZDRMCWPhhN82xmEwPFt6qi6nN5ky0qTzPtJhsTu0dPjyJbgLfyFOu/iPTPHi9oWXuMJpwry9cMTG/wcAR8JG5lJ [email protected] | ||
``` |
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