Module: Concourse::Authorization
- Defined in:
- lib/concourse/headers.rb
Class Method Summary collapse
Class Method Details
.basic(username, password) ⇒ Object
15 16 17 |
# File 'lib/concourse/headers.rb', line 15 def self.basic(username, password) "Basic #{Base64.strict_encode64("#{username}:#{password}")}" end |
.bearer(token) ⇒ Object
11 12 13 |
# File 'lib/concourse/headers.rb', line 11 def self.bearer(token) "Bearer #{token}" end |