mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Don't require username/password authentication for GET /token/:token route
This commit is contained in:
parent
e0356968df
commit
d74c9ff512
3 changed files with 2 additions and 17 deletions
|
|
@ -201,10 +201,6 @@ module Vmpooler
|
|||
result = { 'ok' => false }
|
||||
|
||||
if Vmpooler::API.settings.config[:auth]
|
||||
status 401
|
||||
|
||||
need_auth!
|
||||
|
||||
token = backend.hgetall('vmpooler__token__' + params[:token])
|
||||
|
||||
if not token.nil? and not token.empty?
|
||||
|
|
@ -221,8 +217,6 @@ module Vmpooler
|
|||
end
|
||||
|
||||
result = { 'ok' => true, params[:token] => token }
|
||||
else
|
||||
status 404
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue