mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-23 06:16:42 +00:00
12 lines
258 B
Ruby
12 lines
258 B
Ruby
class AuthTestsController < ApplicationController
|
|
|
|
# POST /auth-tests/basic
|
|
def basic
|
|
if authenticate_with_http_basic { |u, p| u == 'jsmith' && p == 'jspass' }
|
|
head :no_content
|
|
else
|
|
request_http_basic_authentication
|
|
end
|
|
end
|
|
end
|