Skip to content

Commit

Permalink
Set the user agent.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Aug 24, 2023
1 parent e092155 commit 203fa3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/authress-sdk/authress_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def build_request(http_method, path, opts = {})

default_headers = {
'Content-Type' => 'application/json',
'User-Agent' => "Ruby AuthressSDK version: #{Gem.loaded_specs["authress-sdk"].version.to_s}"
'User-Agent' => "Authress SDK; Ruby; #{Gem.loaded_specs["authress-sdk"].version.to_s};"
}
header_params = default_headers.merge(opts[:header_params] || {})
query_params = opts[:query_params] || {}
Expand Down
2 changes: 1 addition & 1 deletion lib/authress-sdk/omniauth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def initialize(*args)
def client
options.client_id = options.application_id
options.client_options.headers = {
'User-Agent' => 'Ruby OmniAuth'
'User-Agent' => "Authress SDK; Ruby; #{Gem.loaded_specs["authress-sdk"].version.to_s};"
}
options.client_options.auth_scheme = :request_body
options.client_options.site = @authress_client.custom_domain_url
Expand Down

0 comments on commit 203fa3f

Please sign in to comment.