Skip to content
Snippets Groups Projects
Commit 62ac6785 authored by Pablo Carranza's avatar Pablo Carranza
Browse files

Add support for ssh-key internal api

parent cbe8b709
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -52,6 +52,15 @@ module API
access.check(params[:action], params[:changes])
end
 
#
# Get a ssh key by the fingerprint
#
# Not supported in CE
#
get "/ssh-key" do
status 501
end
#
# Discover user by ssh key
#
Loading
Loading
Loading
Loading
@@ -48,6 +48,14 @@ describe API::API, api: true do
end
end
 
describe "GET /internal/ssh-key" do
it "fails with not implemented" do
get(api("/internal/ssh-key"), secret_token: secret_token)
expect(response.status).to eq(501)
end
end
describe "POST /internal/allowed" do
context "access granted" do
before do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment